Re: POSIX path with osascript
Re: POSIX path with osascript
- Subject: Re: POSIX path with osascript
- From: Jay Louvion <email@hidden>
- Date: Wed, 27 Jan 2010 23:25:57 +0100
- Thread-topic: POSIX path with osascript
Title: Re: POSIX path with osascript
Yay ! Thanks a bunch, sir.
And also Luther, Doug, Alex et al.
Best,
j.
Jay Louvion
Studio Casagrande
3, rue Müller-Brun
1208 Geneva
T+4122 840 3272
F+4122 840 3271
www.studiocasagrande.com
P Please consider the environment before printing this email.
On 27.01.2010 22:58, "Martin Michel" <email@hidden> spake thus:
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
_______________________________________________
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