Re: another dumb question re Posix Path
Re: another dumb question re Posix Path
- Subject: Re: another dumb question re Posix Path
- From: John Delacour <email@hidden>
- Date: Wed, 6 Aug 2003 12:24:45 +0100
On Wednesday, August 6, 2003, at 11:59 AM, peter wrote:
Am I right in saying that the finder will only respond to colon
delimited paths?
i.e: {hard disk:Users:george:mildred:}
The Finder can make nothing of a string, whatever it looks like. It
will deal with any of these
'alias'
'file specification'
'POSIX file'
'document file' [of application "Finder"]
'file' "d:f:f"
how in an AS application is one supposed to coerce the posix path
returned from an open panel to a format that the finder will be happy
with?
I don't know what an "open panel is but you can use any of these
methods to specify the thing. Only alias needs actually to exist.
set _pathname to POSIX path of (path to "docs")
--> "/Users/jd/Documents/"
set _posixfile to _pathname as POSIX file
--> file "dxp:Users:jd:Documents:"
class of _posixfile
--> <<class furl>>
set _filespec to _pathname as POSIX file as file specification
--> file "dxp:Users:jd:Documents:"
class of _filespec
--> file specification
set _alias to _pathname as POSIX file as alias
--> alias "dxp:Users:jd:Documents:"
class of _alias
--> alias
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.