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

10.4: Upload items to iDisk via Automator Internet
I created an Automator Finder plug-in that zips a file and uploads it to your iDisk's site folder, and then copies the URL to the clipboard. It could be easily modified to work with your favorite FTP server. It's great for quickly emailing, blogging, etc., when you need to share files. Coolest thing? I just used it now to upload itself!

Drop it in ~/Library » Workflows » Applications » Finder to make it appear in the contextual menu in the Finder. Download it (3KB) from my iDisk (or the macosxhints.com mirror).

[robg adds: The version on macosxhints is a bit different than the source. There was a hard-coded reference to the iDisk name in the original version. In the version on macosxhints, I replaced that with the already-created variable that holds the name of the iDisk. This seemed to work well for me in testing...]
    •    
  • Currently 2.13 / 5
  You rated: 3 / 5 (8 votes cast)
 
[12,400 views]  

10.4: Upload items to iDisk via Automator | 3 comments | Create New Account
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: vineetb on Feb 23, '07 08:49:56AM

I selected the root of my iDisk folder and I get - Can't get alias "idisk path here"??

---
rock on\\\'



[ Reply to This | # ]
10.4: Upload items to iDisk via Automator
Authored by: Stef@nK on Feb 24, '07 03:06:37AM
Hi,

I use this handler to mount the iDisk automatically without entering any data

on mount_iDisk()
	tell application "Finder"
		set frontmost to true
		set iDiskName to do shell script "defaults read .GlobalPreferences iToolsMember"
		if not (exists disk iDiskName) then
			tell application "System Events" to keystroke "i" using {shift down, command down}
			repeat until (exists the disk iDiskName)
				delay 0.5
			end repeat
			close window iDiskName
		end if
	end tell
	return iDiskName
end mount_iDisk


[ Reply to This | # ]
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 | # ]