Re: Filenames for Apple Script
Re: Filenames for Apple Script
- Subject: Re: Filenames for Apple Script
- From: Alex <email@hidden>
- Date: Wed, 19 Mar 2003 12:26:06 -0800
tell application "Finder"
set mypath to "/tmp/aa" as POSIX file
display dialog (get POSIX path of mypath)
end tell
See Scripting Additions dictionary in AppleScript Editor for further
information.
Alex
On Wednesday, March 19, 2003, at 11:17 AM, Gerriet M. Denkmann wrote:
>
From: "Gerriet M. Denkmann" <email@hidden>
>
Date: Wed Mar 19, 2003 11:17:16 AM US/Pacific
>
To: email@hidden
>
Subject: Filenames for Apple Script
>
>
I am trying to use NSAppleScript.
>
>
And I want to do something like:
>
>
tell application "abc"
>
open "/tmp/aa" as alias
>
end tell
>
>
The problem is that AppleScript seems to want:
>
open "X10:private:tmp:aa" as alias
>
>
The question: how to convert a given filename into the AppleScript
>
format? Something like fileSystemRepresentationFitForAppleScript ?
>
>
Or: how to convince AppleScript to understand normal file notation?
>
>
Gerriet
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.