• 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 can we include ASOC (on Xcode) code including AS Library terminology
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can we include ASOC (on Xcode) code including AS Library terminology


  • Subject: Re: How can we include ASOC (on Xcode) code including AS Library terminology
  • From: Shane Stanley <email@hidden>
  • Date: Thu, 12 Apr 2018 11:12:53 +1000

On 12 Apr 2018, at 7:07 am, Shane Stanley <email@hidden> wrote:
>
> On 12 Apr 2018, at 1:18 am, Takaaki Naganoya <email@hidden> wrote:
>>
>> We can use AppleScript Libraries terminology on Script Editor (ex.Shane’s
>> “Myriad Tables Lib”).
>> On the other hand, can we do it with AppleScriptObjC on Xcode?
>
> This works fine here:

But now I think I misunderstood what you were after -- perhaps you mean
embedding a script library in an Xcode-built app. The usual approach of adding
a folder called "Script Libraries" to the Resources folder doesn't work, as you
have probably found out.

Add the script to your project, then click on the project in the Project
navigator. Click on your target on the left, then click on "Build Phases" at
the top. Where it says "Copy Bundle Resources", click the exposure triangle and
remove the script from the list.

Now click the + sign near the top of the tab, and select "New Copy Files
Phase". This will ad a "Copy Files" item at the bottom of the list, which you
can expand. Select Destination of Wrapper and Subpath of
"Contents/Library/Script Libraries". Add the script to the list.

There's only one catch: the library may not be found the first time the app is
run unless it is somewhere in the user's Applications folder. So you probably
need to add code or instructions accordingly.


--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: How can we include ASOC (on Xcode) code including AS Library terminology
      • From: Shane Stanley <email@hidden>
References: 
 >How can we include ASOC (on Xcode) code including AS Library terminology (From: Takaaki Naganoya <email@hidden>)
 >Re: How can we include ASOC (on Xcode) code including AS Library terminology (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: How can we include ASOC (on Xcode) code including AS Library terminology
  • Next by Date: Re: How can we include ASOC (on Xcode) code including AS Library terminology
  • Previous by thread: Re: How can we include ASOC (on Xcode) code including AS Library terminology
  • Next by thread: Re: How can we include ASOC (on Xcode) code including AS Library terminology
  • Index(es):
    • Date
    • Thread