Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.4: Upload items to iDisk via Automator' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Upload items to iDisk via Automator
Authored by: mr. applescript on Feb 24, '07 05:02:41AM
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 


[ Reply to This | # ]