Where to put Applescripts

Thomas McGrath III 3mcgrath at adelphia.net
Mon Feb 13 14:04:19 EST 2006


Robert,

Very simple and clear now. I was thinking that token had some magic  
etc. to it and of course was over complicating matters. This is very  
doable for me and I can see how this would work in a field, variable,  
custom prop etc.
Now on to some token rules i.e. naming constructs.

Thanks again,

Tom


On Feb 13, 2006, at 1:25 PM, Robert Brenstein wrote:

>> Robert,
>>
>> The idea of using tokens is new to me. The idea seems sound but I  
>> am confused about the syntax. Would you mind giving an example?
>> My questions are how to extract the token and replace it? can I  
>> use replace, find, etc.
>> I looked up the token command and this was not clear.
>>
>> Thanks,
>>
>> Tom
>
> I wanted to add that if you plan to edit those script on more or  
> less regular basis, then keeping them in an normally invisible  
> field is just as good as a property.
>
> With regards to tokens, here is an example of an AppleScript:
>
> tell application [appname] to activate
>
> Let's assume you store it in a property called  
> myApplescriptBringForward and you want to execute it to make Finder  
> come forwards
>
> put quote & "Finder" & quote into appname
> get the myApplescriptBringForward of this stack
> replace "[appname]" with appname in it
> do it as applescript
>
> I coded this quite explicitely and hope this makes things clear for  
> you :)
>
> Note that my using square brackets is not mandatory but they are  
> convenient delimiters ensuring that the token is a unique string.
>
> Robert
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

Thomas J McGrath III
3mcgrath at adelphia.net

Lazy River Software™ - http://www.lazyriversoftware.com

Lazy River Metal Art™ - http://www.lazyriversoftware.com/metal.html

Meeting Wear™ - http://www.cafepress.com/meetingwear

Semantic Compaction Systems - http://www.minspeak.com

SCIconics, LLC - http://www.sciconics.com/sciindex.html










More information about the use-livecode mailing list