|
|
10.5: Set Time Machine disk via AppleScript
Some of the UI parts have been renamed/reworked in 10.6, so this script requires a couple of minor tweaks to work in Snow Leopard.
First, on the two lines that read: set volumename to value of static text of row rownumber of table 1 of scroll area 1 of sheet 1 of window "Time Machine"and set volumename to value of static text of row desiredrownumber of table 1 of scroll area 1 of sheet 1 of window "Time Machine"You must change "static text" to "text field". Second, on the lines that read if volumename as string is primarydrivename thenand else if volumename as string is secondarydrivename thenYou must change "is" to "starts with". These two changes should fix the script for 10.6.
10.5: Set Time Machine disk via AppleScript
I had a devil of a time getting this script working in my environment. Of course, part of that, I'm sure, is that this is the first AppleScript I've ever worked with. What was happening to me was that the script was ending by canceling the screen where it chooses the buttons to "Use for Backup" or "Cancel". I traced this back to the script using the value "0" for the value of desiredrownumber. So, I changed it to this:
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.05 seconds |
|