Re: Finding and shelling out to a sh script in the same directory as the AppleScript
Re: Finding and shelling out to a sh script in the same directory as the AppleScript
- Subject: Re: Finding and shelling out to a sh script in the same directory as the AppleScript
- From: Doug McNutt <email@hidden>
- Date: Thu, 5 Feb 2009 11:27:14 -0700
At 12:29 -0500 2/5/09, Mark J. Reed wrote:
If you have
an object representing a file, then there should be a property of that
object, or a method or command you can call on it, to return its
containing folder. And there is, if you're using the Finder (and
probably System Events, too, maybe?), but it feels basic enough to be
part of the vanilla AS dictionary.
Someday I'd like to understand more about just what an alias is. One
this machine - OS 9.1 - there are alias files that belong to Finder
and there are alis resources which belong to an Alias Manager. We
have been told that the basic idea is that an alias is simply a long
integer that is the FileID item in the HFS database. The integer is
assumed big enough that no value is ever reused. In addition there is
a disk or partition name that might be on a network on even on a
floppy.
But there is more to it and the details remain under wraps.
What does work is that an alias to a file continues to point
correctly when you move the file to another directory on the same HFS
disk. If an alias had a property which is the parent directory an
alias file might well be not available to accept the required change
when a the file it points to is moved.
The real question is: Are alias files and resources the same in OS
neXt as they were in the HFS of old? Do they really belong to Finder
or to a replacement for the Alias Manager? Are they implemented with
*nix hard and soft links now? Does Applescript just ignore all of the
old alis and alias stuff and recreate something else? When you use
the keyword "file" meaning "alias to" just what is happening
underneath? Is an alis resource created?
Is an Applescript alias an object?
--
--> A fair tax is one that you pay but I don't <--
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden