Re: How can we include ASOC (on Xcode) code including AS Library terminology
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 07:07:55 +1000
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:
on applicationDidFinishLaunching:aNotification
tell script "Myriad Tables Lib"
display table with data {"One", "Two", "Three", "Four",
"Five"}
end tell
end applicationDidFinishLaunching:
It also works fine with a "use" statement.
> <AppleScriptObjC on Xcode>
> on dispWeeklyScheduleTable:dispList
> tell script "Myriad Tables Lib"
> —my Code
> end tell
> end dispWeeklyScheduleTable:
> </AppleScriptObjC on Xcode>
>
> This code pass the compile action but causes error in execution.
I'm not sure why. Feel free to send me an example project.
--
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