Re: File URL to Alias?
Re: File URL to Alias?
- Subject: Re: File URL to Alias?
- From: "koenig.yvan" <email@hidden>
- Date: Mon, 24 Feb 2014 22:45:51 +0100
Le 24/02/2014 à 22:16, Christopher Stone <email@hidden> a écrit :
Hey Folks,
Huh? This produces a file url.
tell application "System Events" set app_name to name of the first process whose frontmost is true set _path to value of attribute "AXDocument" of the front window of application process app_name end tell
Is there not a simple way to coerce that to an alias or posix path?
I found a way to do it with Perl and Python, but is there a simple way to do it with Applescript?
Thanks.
-- Best Regards, Chris
Hello
This may help :
activate application "Numbers"
tell application "System Events" set app_name to name of the first process whose frontmost is true set _path to value of attribute "AXDocument" of the front window of application process app_name end tell
tell application "ASObjC Runner" modify string _path so it is unescaped URI --> "/Users/yvankoenig/Desktop/index archives.numbers/" end tell
Of Course Shane will give it in the library format.
Yvan KOENIG (VALLAURIS, France) lundi 24 février 2014 22:36:40
|
_______________________________________________
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