Re: iTunes, NSAppleScript, and timeout
Re: iTunes, NSAppleScript, and timeout
- Subject: Re: iTunes, NSAppleScript, and timeout
- From: patrick machielse <email@hidden>
- Date: Thu, 22 Mar 2007 21:59:16 +0100
Op 22-mrt-2007, om 21:25 heeft Olof Hellman het volgende geschreven:
Patrick wrote --
I will be modifying the source in my application,
so this isn't an option for me.
Rather than modifying the AppleScript source in your application,
could you solve your problem by loading a compiled script and
calling into it with a parameter list that you define in your
application? If so, then you should investigate the AppleScript
subroutine event.
Hmm, could you elaborate on that last sentence? It sounds very
interesting, but I don't fully understand it ;-)
As far as I know, I could implement this strategy by setting up an
NSTask to execute 'osascript get.scpt arg1'. That should work (also
because I don't really need to get any data back from the script) but
it would be a bit more work to set up, and a bit slower to execute.
patrick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden