Re: Double Tell - Tell by Variable Question
Re: Double Tell - Tell by Variable Question
- Subject: Re: Double Tell - Tell by Variable Question
- From: Dave <email@hidden>
- Date: Fri, 26 Jun 2015 12:00:37 +0100
> On 26 Jun 2015, at 10:41, Shane Stanley <email@hidden> wrote:
>
> On 26 Jun 2015, at 7:15 pm, Dave <email@hidden> wrote:
>>
>> I don’t want to use the name “calculator”, because I want the Script to be able to talk to whichever app is currently being targeted.
>
> The only way that can work is if your script uses the (relatively few) commands and classes common to all the potential targets. And if that's the case, wrapping it in a "using terms from" block targeting any of those apps will work fine -- it's sole purpose is to give the AppleScript compiler somewhere to look for terminology.
Thanks, the way I’d envisaged it is that the “targets” would be a suite of Apps - like CS6/5/4/3 or MS Office etc.
In this case, the script code is included in a XCode project as a .applescript file. So, I take XCode does the compilation of the Script?
If so, then if it were possible to specify in the build or other setting where to get the terms from, something like this perhaps:
script MyASClass
property parent : class "NSObject"
property usingTermsFrom : class {"Adobe Illustrator”,"Adobe Photoshop”,"Adobe Indesign”}
What do you think?
Seems like a way to tie the Script in XCode to a set of terms would be a good/cool thing?
Thanks for your help.
All the Best
Dave
_______________________________________________
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