• 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: Sending a list of path strings to the Finder via Scripting Bridge
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Sending a list of path strings to the Finder via Scripting Bridge (From: Peter <email@hidden>)
 >Re: Sending a list of path strings to the Finder via Scripting Bridge (From: Shane Stanley <email@hidden>)
 >Re: Sending a list of path strings to the Finder via Scripting Bridge (From: Peter <email@hidden>)
 >Re: Sending a list of path strings to the Finder via Scripting Bridge (From: Peter <email@hidden>)
 >Re: Sending a list of path strings to the Finder via Scripting Bridge (From: Shane Stanley <email@hidden>)
 >Re: Sending a list of path strings to the Finder via Scripting Bridge (From: Peter <email@hidden>)
 >Re: Sending a list of path strings to the Finder via Scripting Bridge (From: Shane Stanley <email@hidden>)
 >Re: Sending a list of path strings to the Finder via Scripting Bridge (From: Peter <email@hidden>)

  • Prev by Date: Re: Sending a list of path strings to the Finder via Scripting Bridge
  • Next by Date: Populating NSPopupButton from Core Data array controllers in view-based NSTableViews
  • Previous by thread: Re: Sending a list of path strings to the Finder via Scripting Bridge
  • Next by thread: Re: Sending a list of path strings to the Finder via Scripting Bridge
  • Index(es):
    • Date
    • Thread