can't make alias into type text
can't make alias into type text
- Subject: can't make alias into type text
- From: Donald Hall <email@hidden>
- Date: Mon, 15 Sep 2014 23:50:01 -0600
Hi all,
This works in Mavericks:
tell application "System Events" to set __frontApp to (file of every process whose frontmost is true) as text
In Yosemite I get this error:
C a n' t m a k e a l i a s " d i s k 1 s 3 2 : A p p l i c a t i o n s : S c r i p t T i m e r . a p p " o f a p p l i c a t i o n " S y s t e m E v e n t s " i n t o t y p e t e x t . N u m b e r = - 1 7 0 0
(Script Timer was the frontmost app when the script ran.)
Does anyone have a work around for Yosemite? Is there another way to convert an alias into text?
When the script is done I want to be able to reactivate the previously frontmost application with
tell application __frontApp to activate
so I need the file path as text.
Thanks for any pointers. Googling didn’t seem to help.
Don
|
_______________________________________________
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