Sorry Richard,
have added variable which controls if GROWL is active or not and I have set it to inactive.
So you do not need this little information apps.
I understand only 10% of your email, but I hope it solves the issue.
if isRunning then
tell application "GrowlHelperApp"
-- Make a list of all the notification types that this script will ever send:
set the allNotificationsList to ¬
{"Song Notification"}
-- Make a list of the notifications that will be enabled by default.
-- Those not enabled by default can be enabled later
-- in the 'Applications' tab of the growl prefpane.
set the enabledNotificationsList to ¬
{"Song Notification"}
-- Register our script with growl.
-- You can optionally (as here) set a default icon
-- for this script's notifications.
register as application ¬
"Growl Song ID" all notifications allNotificationsList ¬--error is first quote of this line, have you complied this yourself?
default notifications enabledNotificationsList ¬
icon of application "iTunes"
end tell
end if
end if
If I comment it outI get a similar error here (line 1047):
if nActiveGrowl = 1 then
if isRunning then
tell application "GrowlHelperApp"
notify with name "Song Notification" title "Now Playing . . ." description "'" & theSong & "'" & " by '" & theBand & "'" application name "Growl Song ID"
end tell
end if
end if
Same again with similar 40 lines down.
Another same as the first around 1166
The list is endless, it seems this app almost solely depend on this GrowlHelperApp and these 2 patterns (he should have subroutined these for definite), Xcode cannot recognise these app specific lines without it either.
Richard,
Growl is a system information application, used by a lot of applications like cyberduck, forklift, Western Digital Backup, just to name the ones I am using.
Is it possible for you to delete the lines completely?
Wait, I comment it out.
Just a minute or two.
Update: Done, I have surrounded it with (* *) and uploaded it again.
It is the first time I am sharing a Mac application, so I could expect such issues. Sorry!
best Regards
pppfff
PS: Last months I was in Hatfield UK for 3 weeks. It is in Herefordshire as well.
for a pure AppleScript solution Growl must be installed on the developing machine to be able to compile the script.
But there are two workarounds:
¢ use a precompiled script including the Growl part, which can be loaded in case Growl is installed.
¢ use Growl.framework with an ObjC class which can be called by the script.
Actually the second way is not a workaround, it’s the best solution and quite easy to realize
pppfff, I wouldn’t have jumped in so deep anyway, think small aim big, try testing out, menu items, dock menu, simple cocoa. I started off taking existing scripts I had and replacing dialogs with text fields, one being dialog maker, it used to be a text view, text field and a pair of radio buttons, it has gone really well. At least less than 1000 lines :lol: and perhaps not so 3rd party dependant?
@end[/code]
20) in the AppleScript part, you need these elements
property GrowlInstance : missing value
property GrowlIsInstalled : false
on awake from nib theObject
set GrowlInstance to call method "sharedInstance" of class "GrowlNotify"
set GrowlIsInstalled to (call method "growlIsInstalled" of GrowlInstance) as boolean
if GrowlIsInstalled then
call method "growlNotify:title:" of GrowlInstance with parameters {"Now Playing . . .", "my Favourite Song"}
end if
end awake from nib
on will quit theObject
call method "release" of GrowlInstance
end will quit
Hi Richard,
I have understood, that you have modified my app.
Reduced the lines and make it simpler.
Now I am curious to know what you have changed and how it looks like.
Oh I did try fixing it before I realised the amount the app was involved. That’s all.
Btw I have a ridiculous amount of time on my hands, if you ever have ‘silly’ question e.g. why is setStringValue(“utujgu”) not working, or anything small, well anything I call ‘not forum worthy’ (that was a simple example) email me imadrichard@me.com