• 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: Encoded file URL to Mac or Posix path...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Encoded file URL to Mac or Posix path...


  • Subject: Re: Encoded file URL to Mac or Posix path...
  • From: "Mark J. Reed" <email@hidden>
  • Date: Wed, 14 Mar 2007 08:51:57 -0400

Snark much, Emmanuel?

And yes, "do shell script" is part of an extension, but it's a bundled
extension.  You don't have to go find, download, and install it.
Assuming the Perl and Python modules used by the respective solutions
are also bundled, they're zero-installation solutions.  And even if
not bundled, Perl modules can be automatically installed pretty
easily, e.g.  do shell script "cpan Some::Module" with privileges.

On 3/13/07, Emmanuel <email@hidden> wrote:
At 12:00 PM -0700 3/13/07, Scott Babcock <email@hidden> wrote:
>
>There's an easy way to do this without using scripting additions:
>
>set fileURI to "file://localhost/Users/username/Desktop/éøu
>¥"
>set posixPath to (do shell script "perl -e 'use URI::file; print
>URI->new(\"" & fileURI & "\")->file;'")
>--> "/Users/username/Desktop/????"

Oh, that kind of easy. I was thinking the other kind.

Emmanuel
 _______________________________________________
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
  • Prev by Date: Re: Encoded file URL to Mac or Posix path...
  • Next by Date: Re: Encoded file URL to Mac or Posix path...
  • Previous by thread: Re: Encoded file URL to Mac or Posix path...
  • Next by thread: Need help with Adobe Acrobat 8 Professional
  • Index(es):
    • Date
    • Thread