• 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
How do I call a specific applescript handler and pass arguments?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do I call a specific applescript handler and pass arguments?


  • Subject: How do I call a specific applescript handler and pass arguments?
  • From: email@hidden
  • Date: Sun, 20 Nov 2005 12:55:41 -0800

I'd like to include several utility scripts inside my application bundle - similar to the scripts iPhoto uses to mail photos with the user's designated email application. The iPhoto scripts have a function inside the script that takes arguments - like so:

on mail_images(email_subject, default_address, image_count, new_files, new_captions, new_comments, cancel_string)

I'd like to do something similar, but I can't tell from the NSAppleScript class documentation how I can pass arguments to the handlers inside the script. The only methods I see just do an execute.

Anyone know how I can pass data from my cocoa app to a bundled AppleScript? I know it would be possible to just build the script into an NSString and then put my arguments in directly, but I'd prefer to use the iPhoto-like way, if possible.

Thanks,
Blake
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: How do I call a specific applescript handler and pass arguments?
      • From: Jim Correia <email@hidden>
  • Prev by Date: Re: applicationShouldTerminate: still not working
  • Next by Date: Re: applicationShouldTerminate: still not working
  • Previous by thread: Re: applicationShouldTerminate: still not working
  • Next by thread: Re: How do I call a specific applescript handler and pass arguments?
  • Index(es):
    • Date
    • Thread