Shirt Pocket Discussions  
    Home netTunes launchTunes SuperDuper! Buy Now Support Discussions About Shirt Pocket    

Go Back   Shirt Pocket Discussions > SuperDuper! > General
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Rating: Thread Rating: 6 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 02-06-2006, 06:58 AM
NickSloan NickSloan is offline
Registered User
 
Join Date: Feb 2006
Location: Somerset UK
Posts: 1
[QUOTE=kbradnam]

To do this I prepend the following to the start of my daily bakck up script (assumes your backup disk is called 'local backup'):

----------------------------------------------------
property diskname : "local backup"

tell application "Finder"
if not (exists the disk diskname) then
do shell script "diskutil mount `disktool -l | grep 'local backup' | sed 's/.*\\(disk[0-9s]*\\).*/\\1/'`"
delay 1
end if
end tell

delay 2
----------------------------------------------------

Then I add the following at the end of the script.

----------------------------------------------------
tell application "Finder"
if (exists the disk "local backup") then
eject "local backup"
delay 2
end if
delay 2
----------------------------------------------------
[/QUOTE=kbradnam]

I had a couple of problems with these script additions. In the first place, I think there is a missing "end tell" in the second one, no?

More confusingly however, the first one would not compile for me, complaining about beginning with "property": 'Expected "end" but found "property".' If I take out the first line (property diskname : "local backup") and just replace both "diskname" and "local backup" with the name of the actual disk I want to mount/unmount, it seems to work fine. What am I missing here?
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting 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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Feature request future version Iatchi General 5 12-25-2004 09:40 PM


All times are GMT -4. The time now is 10:44 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.