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 > Retrieving selection from the Finder

Retrieving selection from the Finder
Thread Tools
Mac Enthusiast
Join Date: Apr 2000
Location: Belgium
Status: Offline
Reply With Quote
Nov 29, 2000, 07:13 AM
 
I'm trying to carbonize some of my shareware and one of them needs to get the Finder selection. In 9 I used to do this using AppleEvents, but the MacOS X finder is not returning anything (although the AE is sent correctly). Then I tried

tell application "Finder"
the selection
end tell

in the AppleScript Script Editor but the result window remains empty. Anyone any ideas?
PowerMac G4 400MHz/832MB/60GB
AlBook G4 15" 1.25GHz/1.5GB/60GB
Athlon 64 3500+/Asus A8N-SLI Premium/2GB RAM/990GB HD/GF7800GT 512
     
Dedicated MacNNer
Join Date: Oct 1999
Status: Offline
Reply With Quote
Nov 30, 2000, 09:06 AM
 
Ask Sal
     
Fresh-Faced Recruit
Join Date: Dec 1999
Location: Valley Stream, NY, USA
Status: Offline
Reply With Quote
Dec 3, 2000, 03:08 PM
 
Why do you need the Finder selection? That can be changed between the time you app is started up and the time it asks the Finder what's selected.

If you need to know what files to open, you get a list passed in an 'odoc' Apple Event.

Also, you might want to try "get selection of front window".

Note that I don't personally *have* the beta.
     
Sal
Dedicated MacNNer
Join Date: Sep 2000
Location: Cupertino, CA USA
Status: Offline
Reply With Quote
Dec 3, 2000, 10:30 PM
 
I'm trying to carbonize some of my shareware and one of them needs to get the Finder selection. In 9 I used to do this using AppleEvents, but the MacOS X finder is not returning anything (although the AE is sent correctly).
The Finder scripting in the beta is broken and incomplete. The release version will have good Finder scripting.
     
Mac Enthusiast
Join Date: Apr 2000
Location: Belgium
Status: Offline
Reply With Quote
Dec 4, 2000, 06:14 AM
 
So basically until the final release I can't try my software out on OS X?
PowerMac G4 400MHz/832MB/60GB
AlBook G4 15" 1.25GHz/1.5GB/60GB
Athlon 64 3500+/Asus A8N-SLI Premium/2GB RAM/990GB HD/GF7800GT 512
     
   
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 11:19 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