Re: alias file types
Re: alias file types
- Subject: Re: alias file types
- From: has <email@hidden>
- Date: Sun, 23 Feb 2003 01:22:38 +0000
Paul Skinner wrote:
Aliases don't seam to have a creator type or file type and also they
aren't sure what class they are. Here the finder says it's a class
'alias' but the alias says 'disk'.
set f to alias "titan:"
tell application "Finder"
{class of f, class of (get (properties of f))}
end tell
-->{alias, disk}
AppleScript and Finder are both working correctly, but I think you've
misunderstood how they operate. An alias is an AppleScript object. If
you want to manipulate a Finder object, make one:
set anAlias to alias "titan:"
get anAlias --> alias "titan:"
get class of anAlias --> alias
tell application "Finder"
set finderObjectRef to item anAlias
get finderObjectRef --> disk "titan" of application "Finder"
get class of finderObjectRef --> disk
end tell
What I want is to be able to tell LaunchBar[1] to open aliases.
Perhaps you mean "alias files", created with the Finder's File>Make
Alias menu option? These are represented by Finder objects which are
not related to AppleScript aliases.
has
--
http://www.barple.pwp.blueyonder.co.uk -- The Little Page of AppleScripts
_______________________________________________
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.