Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > AppleScript help: Getting info

AppleScript help: Getting info
Thread Tools
Addicted to MacNN
Join Date: Oct 2001
Location: Yokohama, Japan
Status: Offline
Reply With Quote
May 5, 2005, 11:48 PM
 
I need to get info on a volume from within a shell script, where all I have to identify the volume is its POSIX path.

It seems like this should work:
Code:
set p to "/Volumes/My Volume" set a to POSIX file p tell application "Finder" to open information window of a
But all I get back is an error saying that the information window of My Volume could not be gotten. Does anyone know how to do this?
     
Junior Member
Join Date: Mar 2000
Location: Salem, OR, USA
Status: Offline
Reply With Quote
May 6, 2005, 12:31 AM
 
Try this:

Code:
set p to "/Volumes/Macintosh HD" set a to POSIX file p tell application "Finder" to get info for a

Thank me. I voted for Bush.
     
wataru  (op)
Addicted to MacNN
Join Date: Oct 2001
Location: Yokohama, Japan
Status: Offline
Reply With Quote
May 6, 2005, 12:37 AM
 
I won't thank you for voting for Bush, but thanks for your response. Unfortunately, that just returns information; I needed the Get Info window to appear in the Finder.

The good news is that I found a completely different way of doing what I needed to do, so the issue is moot now.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:29 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2