Re: alias is folder?
Re: alias is folder?
- Subject: Re: alias is folder?
- From: John Delacour <email@hidden>
- Date: Mon, 28 Apr 2003 10:31:48 +0100
- Mac-eudora-version: 6.0a16
At 9:58 pm -0400 27/4/03, Christopher Nebel wrote:
Of course, it won't work unless you run in English. For example, in
French, the kind of myAlias is "Dossier". A more reliable approach
is this:
tell application "Finder"
get class of item myAlias --> folder
end tell
It occurs to me that Matt may not have asked the question he intended to ask
At 5:14 pm -0700 26/4/03, matt neuburg wrote:
Given an alias, what's the best way to ask the Mac OS X Finder whether
it's a folder? Thx - m.
If by that he means Given an alias file, how do I discover whether it
points to a folder; then this method will not work -- it will return
'alias file'. And nor will Paul's methods. Here is an example of
what I mean and a solution to the question he may have meant to ask:
tell application "Finder"
set _sele to item 1 of (get selection)
--> alias file "0_scripts_eudora" of folder "jd"...
set _path to "" & _sele
--> "dx:Users:jd:0_scripts_eudora"
set _item to "" & original item of file _path
--> folder "Scripts" of folder "Eudora Folder...
--> "dx:Users:jd:Documents:Eudora Folder...
set isFolder to _item ends with ":" and item does not end with ":app:"
{isFolder, class of _sele is folder}
--> {true, false}
end tell
_______________________________________________
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.