• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Yosemite and activate failures
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Yosemite and activate failures


  • Subject: Re: Yosemite and activate failures
  • From: Robert Poland <email@hidden>
  • Date: Fri, 16 Jan 2015 11:35:46 -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,

With a “delay 0.1" after activate the results are the same as before, curName = Smile.

With a “delay 0.2" after activate the result is the curName = TextEdit.


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


  • Follow-Ups:
    • Re: Yosemite and activate failures
      • From: Christopher Stone <email@hidden>
References: 
 >Script that "Tells" Finder just Focuses on Finder instead of running (From: Alex Hall <email@hidden>)
 >Re: Script that "Tells" Finder just Focuses on Finder instead of running (From: Deivy Petrescu <email@hidden>)
 >Re: Script that "Tells" Finder just Focuses on Finder instead of running (From: 2551 <email@hidden>)
 >Re: Script that "Tells" Finder just Focuses on Finder instead of running (From: Alex Hall <email@hidden>)
 >Re: Script that "Tells" Finder just Focuses on Finder instead of running (From: Deivy Petrescu <email@hidden>)
 >Re: Script that "Tells" Finder just Focuses on Finder instead of running (From: Shane Stanley <email@hidden>)
 >Re: Script that "Tells" Finder just Focuses on Finder instead of running (From: Deivy Petrescu <email@hidden>)
 >Re: Script that "Tells" Finder just Focuses on Finder instead of running (From: Shane Stanley <email@hidden>)
 >Re: Script that "Tells" Finder just Focuses on Finder instead of running (From: Deivy Petrescu <email@hidden>)
 >Re: Script that "Tells" Finder just Focuses on Finder instead of running (From: Shane Stanley <email@hidden>)
 >Re: Script that "Tells" Finder just Focuses on Finder instead of running (From: Shane Stanley <email@hidden>)
 >Re: Script that "Tells" Finder just Focuses on Finder instead of running (From: Yvan KOENIG <email@hidden>)
 >Re: Script that "Tells" Finder just Focuses on Finder instead of running (From: Shane Stanley <email@hidden>)
 >Re: Script that "Tells" Finder just Focuses on Finder instead of running (From: Yvan KOENIG <email@hidden>)
 >Re: Script that "Tells" Finder just Focuses on Finder instead of running (From: Shane Stanley <email@hidden>)
 >Re: Script that "Tells" Finder just Focuses on Finder instead of running (From: Alex Hall <email@hidden>)
 >Re: Yosemite and activate failures (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: Yosemite and activate failures
  • Next by Date: Re: Yosemite and activate failures
  • Previous by thread: Re: Yosemite and activate failures
  • Next by thread: Re: Yosemite and activate failures
  • Index(es):
    • Date
    • Thread