• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: iTunes, NSAppleScript, and timeout
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • RE: iTunes, NSAppleScript, and timeout
      • From: Olof Hellman <email@hidden>
References: 
 >Re: iTunes, NSAppleScript, and timeout (From: patrick machielse <email@hidden>)
 >RE: iTunes, NSAppleScript, and timeout (From: Olof Hellman <email@hidden>)

  • Prev by Date: Re: last opened
  • Next by Date: Re: FM 8 layout references w/applescript - works in one file, fails in five other identical files!
  • Previous by thread: RE: iTunes, NSAppleScript, and timeout
  • Next by thread: RE: iTunes, NSAppleScript, and timeout
  • Index(es):
    • Date
    • Thread