Re: Sending a list of path strings to the Finder via Scripting Bridge
Re: Sending a list of path strings to the Finder via Scripting Bridge
- Subject: Re: Sending a list of path strings to the Finder via Scripting Bridge
- From: Shane Stanley <email@hidden>
- Date: Sun, 27 May 2012 08:19:54 +1000
On 27/05/2012, at 12:30 AM, Peter wrote:
> Just for clarification:
>
> This AS handler would then live in a .applescript file in my project wrapped in
>
> script ASClassInstance
Yes.
> And on of the above calls would live in a .m file containing
>
> #import <AppleScriptObjC/AppleScriptObjC.h> //no need to put this in main.m, I guess
No. The #import line needs to go wherever the [[NSBundle mainBundle] loadAppleScriptObjectiveCScripts] is, and main.m is the logical place. You might want to add an informal protocol for the method to the calling .m file to keep the compiler happy.
> Does this require any special build settings?
You probably want to change the OSA Compile setting for Save as Execute-Only to YES.
--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden