Re: AppleScriptObjC -- List Folder Handler
Re: AppleScriptObjC -- List Folder Handler
- Subject: Re: AppleScriptObjC -- List Folder Handler
- From: Shane Stanley <email@hidden>
- Date: Sat, 01 Dec 2018 14:30:48 +1100
On 1 Dec 2018, at 2:08 pm, Stan Cleveland <email@hidden> wrote:
>
> Your listFolder handler returns its name as "__A\\V" in all three output
> formats, which fails when used to address the folder. Clearly, the backslash
> is getting escaped somewhere in the machinery, but probably isn't wanted for
> AS.
The escaping is required by AppleScript. Run this with your folder selected:
tell application "Finder"
set x to item 1 of (get selection)
set y to name of x
set z to x as text
end tell
set w to alias z
return {x, y, z, w}
You'll see escaping there, too. In fact, this:
set x to "_A\V"
fails to compile.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.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