Re: POSIX path with osascript
Re: POSIX path with osascript
- Subject: Re: POSIX path with osascript
- From: Martin Michel <email@hidden>
- Date: Wed, 27 Jan 2010 22:58:29 +0100
Sorry, here is an improved version, must be the iPad hype *g*
on run argv set folderpath to item 1 of argv set filenames to (items 2 through -1) of argv
set filestoreveal to {} repeat with filename in filenames set filepath to folderpath & "/" & filename set filealias to POSIX file filepath set filestoreveal to filestoreveal & filealias end repeat
tell application "Finder" select filestoreveal activate reveal selection end tell end run
Am 27.01.2010 um 22:45 schrieb Martin Michel: Hi,
How about code like follows:
on run argv set folderpath to item 1 of argv set filenames to (items 2 through -1) of argv
repeat with filename in filenames set filepath to folderpath & "/" & filename set filepath to POSIX file filepath tell application "Finder" reveal (filepath as alias) end tell end repeat end run
|
_______________________________________________
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