Re: Yosemite and activate failures
Re: Yosemite and activate failures
- Subject: Re: Yosemite and activate failures
- From: Robert Poland <email@hidden>
- Date: Fri, 16 Jan 2015 11:29:34 -0700
> On Jan 16, 2015, at 11:21:AM, Christopher Stone <email@hidden> wrote:
>
> On Jan 15, 2015, at 12:33, Ray Robertson <email@hidden> wrote:
>> When using “activate” in an applet, I’m getting unreliable results under 10.10.1. I’m using the script below to test, which should display the name of each application which was activated…
> ______________________________________________________________________
>
> Hey Ray,
>
> Activate has been rather iffy pre-Yosemite for some while, but I'm fuzzy on exactly how long.
>
> This works reliably for me on Mavericks.
>
> ----------------------------------------------
> tell application "TextEdit"
> launch
> activate
> set curName to path to frontmost application
> set AppleScript's text item delimiters to {".", ":"}
> set _app to text item -3 of (curName as text)
> end tell
> ----------------------------------------------
>
> I'd be interested to know if it works on Yosemite.
>
> --
> Best Regards,
> Chris
Chris,
When run from "Smile" and "Script Editor” the response is "Smile" and "Script Editor” with TextEdit being opened.
Robert Poland
Fort Collins CO
_______________________________________________
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