Re: can't make alias into type text
Re: can't make alias into type text
- Subject: Re: can't make alias into type text
- From: Donald Hall <email@hidden>
- Date: Wed, 17 Sep 2014 22:39:07 -0600
Thanks to all who replied, especially to Yvan.
I have filed a bug report.
I have decided to alter my program slightly to use Chris Page’s suggestion:
tell application "System Events" to set frontProcess to the first item of (processes whose frontmost is true) …script runs here and could cause a different app to become the frontmost ... set the frontmost of frontProcess to true — restore the previous frontmost app (this is actually a program option)
which works in Yosemite and is a more efficient way to do what I want.
Don
On Sep 15, 2014, at 10:50 PM, Donald Hall <email@hidden> wrote:
tell application "System Events" to set __frontApp to (file of every process whose frontmost is true) as text
In Yosemite I get this error:
Can't make alias "disk1s3 2:Applications:Script Timer.app" of application "System Events" into type text. Number=-1700
|
_______________________________________________
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