POSIX file works with file URLs; in fact, the class of a POSIX file specifier is «class furl».POSIX file "file://localhost/Users/richardr/Desktop/bevakad/NORRSÄTRASKOLAN_mall_ A4_2010/"Should work as-is with System Events; add "as alias" if you intend to use it with the Finder.On Sun, May 30, 2010 at 1:22 PM, Emmanuel LEVY <email@hidden> wrote: satimage osax' absoluteurl command is good at that Emmanuel On May 30, 2010, at 6:44 PM, Richard Rönnbäck wrote: does anyone know a way to locate a file by URL, such as "file://localhost/Users/richardr/Desktop/bevakad/NORRSÄTRASKOLAN_mall_ A4_2010/" and turn that into an alias/ posix file etc. Preferably in vanilla AppleScript, as shell scripting seems to have some encoding issues with decomposed/precomposed unicode characters _______________________________________________ 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 _______________________________________________ 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 -- Mark J. Reed <email@hidden> 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: getting a file by URL ? From: "Mark J. Reed" <email@hidden> References: >getting a file by URL ? (From: Richard Rönnbäck <email@hidden>) >Re: getting a file by URL ? (From: Emmanuel LEVY <email@hidden>) >Re: getting a file by URL ? (From: "Mark J. Reed" <email@hidden>) Prev by Date: Re: getting a file by URL ? Next by Date: Can't Delete Mailbox Previous by thread: Re: getting a file by URL ? Next by thread: Re: getting a file by URL ? Index(es): Date Thread
satimage osax' absoluteurl command is good at that Emmanuel On May 30, 2010, at 6:44 PM, Richard Rönnbäck wrote: does anyone know a way to locate a file by URL, such as "file://localhost/Users/richardr/Desktop/bevakad/NORRSÄTRASKOLAN_mall_ A4_2010/" and turn that into an alias/ posix file etc. Preferably in vanilla AppleScript, as shell scripting seems to have some encoding issues with decomposed/precomposed unicode characters _______________________________________________ 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 _______________________________________________ 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
does anyone know a way to locate a file by URL, such as "file://localhost/Users/richardr/Desktop/bevakad/NORRSÄTRASKOLAN_mall_ A4_2010/" and turn that into an alias/ posix file etc. Preferably in vanilla AppleScript, as shell scripting seems to have some encoding issues with decomposed/precomposed unicode characters _______________________________________________ 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