Re: Question about "info for" command
Re: Question about "info for" command
- Subject: Re: Question about "info for" command
- From: Pier Kuipers <email@hidden>
- Date: Thu, 14 Jun 2001 21:49:26 +0100
At 16:54 +0200 14/6/01, Jan Pieter Kunst wrote:
>
Pier Kuipers (email@hidden) schreef op 14-06-2001 15:14 :
>
> tell application "Finder"
>
> set x to (folder of selection) as alias
>
> end tell
>
> or
>
> tell application "Finder"
>
> set x to (folder of selection)
>
> end tell
>
>
Yes, but the "folder" property of "info for" something is a boolean: true if
>
something is a folder, false otherwise. I was looking to get that boolean,
>
not the "folder" of the Finder, which returns a path/alias (not sure of
>
terminology) to a folder.
I know you're trying to end this thread, but just one last option:
tell application "Finder"
if last character of ((selection as alias) as text) is ":" then
set IsFolder to true
else
set IsFolder to false
end if
end tell
Pier.
--
Pier Kuipers
Visual ID
* the Media Asset Management solution *
2 Whitefriars
Aungier Street
Dublin 2
Tel. +353 1 476 7059
Mobile +353 87 294 3063
Fax +353 1 478 1366
ISDN +353 1 602 0754
http://www.visualid.com