How to include an applescript in a livecode stack?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
shawnblc
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 342
Joined: Fri Jun 01, 2012 11:11 pm

How to include an applescript in a livecode stack?

Post by shawnblc » Mon Jun 02, 2014 11:51 pm

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

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

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

Post by Simon » Tue Jun 03, 2014 2:00 am

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
Attachments
infamous_quotes.zip
Really I should get this up on revOnline
(838 Bytes) Downloaded 170 times
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

shawnblc
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 342
Joined: Fri Jun 01, 2012 11:11 pm

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

Post by shawnblc » Tue Jun 03, 2014 1:13 pm

Thank you Simon. I'll give that a shot.

shawnblc
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 342
Joined: Fri Jun 01, 2012 11:11 pm

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

Post by shawnblc » Wed Jun 04, 2014 12:31 am

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.

Post Reply