How do I call a specific applescript handler and pass arguments?
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