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 > Script to thrash file

Script to thrash file
Thread Tools
Fresh-Faced Recruit
Join Date: Feb 2000
Location: Sydney
Status: Offline
Reply With Quote
Aug 31, 2000, 07:54 AM
 
I am new to scripts. Has anyone got a script to drag the icon of another computer that I've opened over the network from my desktop to trash (or put away)?

Thanks.

Ilesh
     
Dedicated MacNNer
Join Date: May 2000
Location: Chattanooga, TN
Status: Offline
Reply With Quote
Aug 31, 2000, 06:10 PM
 
tell application "Finder"
try
select disk "sharedDisk"
put away selection
on error
end try
end tell

Just replace "sharedDisk" with the name of the drive you want disconnected. (Keep the quotes, though).
     
   
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 08:01 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