Re: POSIX path with osascript
Re: POSIX path with osascript
- Subject: Re: POSIX path with osascript
- From: Luther Fuller <email@hidden>
- Date: Wed, 27 Jan 2010 15:48:52 -0600
On Jan 27, 2010, at 3:02 PM, Jay Louvion wrote: on run argv tell application "Finder" try set AliasList to {} set FolderPath to item 1 of argv repeat with FileName in (items 2 thru end of argv) set FileAlias to (POSIX path of FolderPath as text) & "/" & FileName as string as alias set AliasList to AliasList & FileAlias end repeat
It seems that 'argv' is a list whose 1st item is a folder path and whose remaining items are the names of files it contains. Is the 1st item a posix path or a colon delimited path or an alias? I will presume that it's an alias.
I recommend this ...
set FileAlias to ((FolderPath as text) & FileName) as alias
If the 1st item of 'argv' is not an alias, it ought to be.
|
_______________________________________________
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