Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Applescript support #3705

Closed
cyberduck opened this issue Sep 12, 2009 · 12 comments
Closed

Missing Applescript support #3705

cyberduck opened this issue Sep 12, 2009 · 12 comments
Assignees

Comments

@cyberduck
Copy link
Collaborator

57e3bcb created the issue

Hi there,

Since i updated to Snow Leopard, this script:

tell application "Cyberduck"
make new browser
end tell

results in this error message:

error "Cyberduck got an error: The handler some object is not defined." number -1717

thus all those niiiice cyberduckscripts are not working anymore.

It would be nice having that working again - if it's a general bug ;-)

thx
alex

ps: also tried build 5250 - same there

@cyberduck
Copy link
Collaborator Author

@dkocher commented

AppleScript support is currently missing from the Snow Leopard compatible beta builds as it has to be rewritten from scratch.

@cyberduck
Copy link
Collaborator Author

57e3bcb commented

oh, ok. i see.
thx

@cyberduck
Copy link
Collaborator Author

DickM commented

Hello,
I still waiting on AppleScript support. I thinking about rewrite my Applescripts to use Terminal.app and SFTP instead of Cyberduck :-( It would have been faster.

@cyberduck
Copy link
Collaborator Author

57e3bcb commented

hi milestone,

that's exactly what i did. Here a sample script:

--
-- spc upload
-- attach this script as a folder action to a folder. on dropping files to that folder, it will upload the files to the specified server using scp
-- 
-- you need to be able to access the destination server with key authorisation for this to work
-- 
-- if you don't have key authentication, you can set it up this way:
-- 
-- 1. generate your keys typing this command in terminal:
-- ssh-keygen -t rsa
-- 
-- 2. upload your public key to the destination server
-- cat ~/.ssh/id_rsa.pub | ssh USERNAME@SERVER 'cat >> .ssh/authorized_keys'
-- 
-- 3. test the key authentication
-- ssh USERNAME@SERVER
-- => you shouldn't be prompted to enter your pw
-- 
-- written by fyysh
-- 

on adding folder items to this_folder after receiving added_items
	
	
	set DestServer to "USERNAME@SERVER:PATH_ON_SERVER"
	set GrowlTitle to "IMG Upload"
	
	--clipboard stuff
	--if u need the url or something like that of the file your uploading uncomment this
	--it will put somethink like http://yourdomain.com/bla/filename in your clipboard.
	--you'll need to uncomment the command for setting te clipboard to this below
	--make sure your url ends with / !
	--set DESTINATION_WEB_URL to "http://yourdomain.com/bla/" as text
	
	set theFileName to ""
	
	
	set the item_count to the number of items in the added_items
	
	if the item_count is greater than 0 then
		--spc upload
		repeat with aFile in added_items
			tell application "Finder" to set theFileName to aFile as text
			set theFilePath to (POSIX path of aFile) as text
			try
				
				
				set FileN to name of (info for alias theFileName)
				
				
				do shell script "scp -c blowfish -C " & quoted form of theFilePath & " " & DestServer
				
				--uncomment this to get the url+filename in your clipboard
				--set the clipboard to (DESTINATION_WEB_URL & FileN)
				
				--uncomment this to be notified if the upload was successfull 
				--display dialog "Upload of " & FileN & " was successfull." buttons {"OK"} default button 1 giving up after 5
				
				
			on error
				
				display dialog "Upload of " & FileN & " failed." buttons {"OK"} default button 1 with icon 0
				
				
			end try
		end repeat
	end if
	
	
end adding folder items to

@cyberduck
Copy link
Collaborator Author

57e3bcb commented

lol...
i meant "hi DickM"... doh

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Replying to [comment:5 menteinfinita@…]:

that's exactly what i did. Here a sample script:

Thanks for sharing the script here!

@cyberduck
Copy link
Collaborator Author

eykanal commented

Just another request to have this bug (or whatever it is) addressed. Thanks!

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Postponed for possible later addition.

@cyberduck
Copy link
Collaborator Author

Czech X Team commented

Replying to [comment:9 dkocher]:

Postponed for possible later addition.

It is a really bad news :-(

@cyberduck
Copy link
Collaborator Author

8228ff4 commented

Replying to [comment:9 dkocher]:

Postponed for possible later addition.

Oh bummer! Our databases have applescripts built into them that hook into cyberduck that make uploading to various ftp sites very easy. Unfortunately for us, no applescript support on the near horizon for Cyberduck means finding another ftp client that does support it. Bummer, bummer, bummer. We would be happy to continue to use an old version, but those don't work with snow leopard.

@cyberduck
Copy link
Collaborator Author

4ff208c commented

Replying to [comment:9 dkocher]:

Postponed for possible later addition.
Yikes! Is there a timeline for applescript support again? I'd be happy to donate again if this is going to happen soon as I rely heavily on cyberduck's scripting capability. If not, then I need to move on. Would prefer to continue to use this fine product though.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

There are currently no plans to reintroduce support for AppleScript.

@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants