|
|
10.4: Upload items to iDisk via Automator
You can use the mount volume command that is part of the Standard Additons to mount the iDisk. Here are a couple versions:
To mount Public folder:
set member_name to do shell script "defaults read .GlobalPreferences iToolsMember"
try
mount volume ("http://idisk.mac.com/" & member_name & "/Public/")
on error error_message number error_number
if error_number is not in {-55, -128} then
display dialog error_message buttons {"Cancel"} default button 1
end if
end try
To mount iDisk with user-interaction:
set member_name to do shell script "defaults read .GlobalPreferences iToolsMember"
try
mount volume ("http://idisk.mac.com/" & member_name)
on error error_message number error_number
if error_number is not in {-55, -128} then
display dialog error_message buttons {"Cancel"} default button 1
end if
end try
To mount without user-interaction (replace XXXXX with password):
set member_name to do shell script "defaults read .GlobalPreferences iToolsMember"
try
mount volume ("http://idisk.mac.com/" & member_name) as user name member_name with password "XXXXX"
on error error_message number error_number
if error_number is not in {-55, -128} then
display dialog error_message buttons {"Cancel"} default button 1
end if
end try
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks 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.09 seconds |
|