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 > Expert AppleScript advice needed 2

Expert AppleScript advice needed 2
Thread Tools
Fresh-Faced Recruit
Join Date: May 1999
Location: The Netherlands
Status: Offline
Reply With Quote
Jan 30, 2001, 07:06 AM
 
I want the following script to work without the Finder asking me if I really want to remove this disk.

tell application "Finder"
move disk "Backup" to trash
end tell

It has something to do with "[asking boolean] -- Specifies whether or not to present a dialog to confirm putting this item away." but I do not know how to implement this in my script. How do I do that?

Regards,
Rob
     
Fresh-Faced Recruit
Join Date: Jan 2001
Location: Thionville, France
Status: Offline
Reply With Quote
Jan 30, 2001, 01:42 PM
 
You should try this one instead:

tell application "Finder"
put away disk "Backup"
end tell

Gwenhiver.
     
Fresh-Faced Recruit
Join Date: May 1999
Location: The Netherlands
Status: Offline
Reply With Quote
Jan 30, 2001, 01:46 PM
 
I tried that too but the Finder still asks if I'm sure that I want to remove the disk from the desktop. It's this dialog I want to get rid off.

Please help!
     
Fresh-Faced Recruit
Join Date: Jan 2001
Location: Thionville, France
Status: Offline
Reply With Quote
Jan 30, 2001, 03:37 PM
 
What's your Mac OS version. I use Mac OS 9.1 and I don't have this dialog box (and I think I didn't have it with Mac OS 9.0.4 either).
Anyway, try this:

tell application "Finder"
put away disk "Mihrien" without asking
end tell

Gwenhiver.
     
Fresh-Faced Recruit
Join Date: May 1999
Location: The Netherlands
Status: Offline
Reply With Quote
Jan 30, 2001, 03:59 PM
 
THANKS!!! Works like a charm. (9.1)
     
   
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:08 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