Re: Alias Files
Re: Alias Files
- Subject: Re: Alias Files
- From: Doug McNutt <email@hidden>
- Date: Wed, 12 Sep 2007 16:20:35 -0600
At 16:54 -0500 9/12/07, Luther Fuller wrote:
>My experience is that in a list of file references, Mac 'Alias Files' are not resolved to their original item, but symlinks are automatically resolved to their original item. Perhaps a solution to my problem would be to get the list of files using a 'do shell script'. But, I'm not sure what the proper command might be.
do shell script "cd $HOME; ls -F"
returns a line-end separated string in which it adds a character to each file name. "@" indicates a symbolic link.
man ls in Terminal.app for more. The new shell will not know about your current working directory as it starts up. A full path is required for the cd command.
You might also look at the "file" command which is a bit like Finder's get info but knows about UNIX links.
--
--> On the eighth day, about 6 kiloyears ago, the Lord realized that free will would make man ask what existed before the Creation. So He installed a few gigayears of history complete with a big bang and a fossilized record of evolution. <--
_______________________________________________
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