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

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


  • Subject: Re: How do I call a specific applescript handler and pass arguments?
  • From: James Howard <email@hidden>
  • Date: Sun, 20 Nov 2005 19:21:19 -0800

http://weblog.scifihifi.com/2004/04/15/calling-applescript-handlers- from-cocoa/

Date: Sun, 20 Nov 2005 12:55:41 -0800
From: email@hidden
Subject: How do I call a specific applescript handler and pass
	arguments?
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

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
  • Prev by Date: Re: NSPredicate performance considerations
  • Next by Date: How can i determine the mac pixel ratio?
  • Previous by thread: Re: How do I call a specific applescript handler and pass arguments?
  • Next by thread: Thread context switch
  • Index(es):
    • Date
    • Thread