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 > Applescripting help

Applescripting help
Thread Tools
The Dark Half
Guest
Status:
Reply With Quote
Nov 21, 2000, 12:18 PM
 
basically what i'm trying to achive is for the script to mount a volume, copy over netscape prefs, and unmount the server.

i need to figure out how to unmount a volume... the mounting was easy to write, but i dont know how to unmount...

the other problem i'm having is when i want to run the script again, it wont let me replace the previous folder thats already there.. is there an easy way to do this?

thanks alot,
the non-scripter
     
Dedicated MacNNer
Join Date: Nov 1999
Location: Georgetown, Demerara, Guyana
Status: Offline
Reply With Quote
Nov 22, 2000, 01:45 AM
 
Hi TDH,

For issue #1, the Finder's 'put away' command will let you unmount a server.

For issue #2, I agree that the Finder can be stubborn about replacing an existing item (or deleting it without an annoying prompt) on some remote servers, including Apple's own "iDisk" server. One way to work around this is to use a scripting addition (OSAX) that can silently delete the existing item. (E.g., the Jon's Commands OSAX has a 'deleteFile' command that works for a file or a folder.) With this approach, your script could first use the Finder's 'exists' command to check whether the item's already there on the server and, if so, use the OSAX's "delete" command to silently get rid of it. Then, your script would just copy the item over to the server as usual. [Actually, I myself use this approach in my "iDisk upload" script.]

Regards,

--Paul
     
   
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:03 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