LiveCode & applescript

Sarah Reichelt sarah.reichelt at gmail.com
Sun Nov 28 06:34:44 EST 2010


Where you have "open application", try using "launch application" instead.
It's a while since I did this, but I seem to remember that "open"
brings the app to the front, where "launch" does not.

Cheers,
Sarah


On Sun, Nov 28, 2010 at 3:11 AM, Yves COPPE <yvescoppe at skynet.be> wrote:
> Hello list
>
>
> I use the following script
>
>
>   put "tell application "&quote&"Finder"&quote&cr& \
>          "open application file "&quote&"ical.app"&quote&" of folder "&quote&"Applications"&quote&" of startup disk"&cr& \
>          "tell application "&quote&"iCal"&quote&cr& \
>          "set theCalendarNames to title of every calendar"&cr& \
>          "end tell" &cr& \
>          "end tell" into tScript
>   do tScript as applescript
>
> works perfectly
> but iCal comes on the foreground of the screen and hide behind him the live code window
> how can I proceed to make live code staying at the foreground of the screen ?




More information about the use-livecode mailing list