Re: Encoded file URL to Mac or Posix path...
Re: Encoded file URL to Mac or Posix path...
- Subject: Re: Encoded file URL to Mac or Posix path...
- From: Martin Orpen <email@hidden>
- Date: Thu, 15 Mar 2007 23:23:21 +0000
On 15 Mar 2007, at 03:56, Tetsuro KURITA wrote:
And I think that unescaping URI will be essential for AppleScript.
Because
the value "AXDocument" attribute of GUI Scripting is URI.
Unescaping URI is
required to treat the value as a reference to file in AppleScript.
I prefer that such essential function is given by scripting
addition form.
Daniel Jalkut posted an obj-c method of doing this (and a useful
background app - AppleScriptKit - which I still use) some time ago
which calls on NSString's "stringByAddingPercentEscapesUsingEncoding:"
You can achieve the same result by launching Automator. But it would
be much nicer if Leopard came with a tiny, faceless Cocoa app that we
could call on whenever we wanted to use obj-c without going to the
trouble of creating an application in Xcode.
--
Martin Orpen
<http://www.idea-digital.com/>
_______________________________________________
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