Page 1 of 1

How to include an applescript in a livecode stack?

Posted: Mon Jun 02, 2014 11:51 pm
by shawnblc
Been trying to include an apple script in a stack, not having much luck. The applescript is working when i run it by itself.

If I create a text field and paste the script in the contents it won't work though. Any help will be appreciated. Thanks.

Code: Select all

on mouseUp
   do field "fldScript" as AppleScript
end mouseUp

Re: How to include an applescript in a livecode stack?

Posted: Tue Jun 03, 2014 2:00 am
by Simon
Hi Shawn,
Interesting as that method is said to work.
Attached is a little tool I made for those pesky quotes.
just need to add
put ...
into myVar

Hope you can figure out how to use it.

Simon

Re: How to include an applescript in a livecode stack?

Posted: Tue Jun 03, 2014 1:13 pm
by shawnblc
Thank you Simon. I'll give that a shot.

Re: How to include an applescript in a livecode stack?

Posted: Wed Jun 04, 2014 12:31 am
by shawnblc
Not working, using 6.6.2 RC6 and 7 DP6.

Perhaps I'm including the script wrong.

I've pasted the applescript into a text field and am calling it. I used the above from Simon to convert the quotes.