• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: POSIX path with osascript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: POSIX path with osascript
      • From: Jay Louvion <email@hidden>
References: 
 >POSIX path with osascript (From: Jay Louvion <email@hidden>)
 >Re: POSIX path with osascript (From: Martin Michel <email@hidden>)

  • Prev by Date: Re: POSIX path with osascript
  • Next by Date: Re: POSIX path with osascript
  • Previous by thread: Re: POSIX path with osascript
  • Next by thread: Re: POSIX path with osascript
  • Index(es):
    • Date
    • Thread