Jump to content
bigluck

Transmit favorites workflow

Recommended Posts

Hi everybody,
 
I've published my first Alfred 2 workflow's; this basic workflow allow you to easly connect to your Transmit favorites.
 
s1jd08.jpg
 

The syntax is very simple: `ftp <name>` when <name> could be:
- favorite name in transmit
- favorite username
- favorite server
- favorite remote path
 
 
Here the github repository: https://github.com/BigLuck/alfred2-transmit

Share this post


Link to post

Bigluck: Not sure if you are aware of this but the workflow will return multiple line items for a result if it is in the Transmit History as well. That's one of the reasons I had not tackled this one yet because I didn't feel like messing with that :) I guess you could move around that by.. as you find them, add them to an array but only after you check to see if another entry with the same server and username exist (maybe the same remote path too).

Share this post


Link to post
Bigluck: Not sure if you are aware of this but the workflow will return multiple line items for a result if it is in the Transmit History as well. That's one of the reasons I had not tackled this one yet because I didn't feel like messing with that :) I guess you could move around that by.. as you find them, add them to an array but only after you check to see if another entry with the same server and username exist (maybe the same remote path too).

 

Try out the last release, I've tried to remove the historical elements

Share this post


Link to post

Great workflow! Thanks!

 

However, I have a problem with it. When I use your workflow to open a Transmit favorite with folder names containing Cyrillic characters, they are displayed incorrectly. Could you make your workflow open favorites using UTF-8 encoding?

Share this post


Link to post
Great workflow! Thanks!

 

However, I have a problem with it. When I use your workflow to open a Transmit favorite with folder names containing Cyrillic characters, they are displayed incorrectly. Could you make your workflow open favorites using UTF-8 encoding?

 

I'm trying to fix this bug but is not easy. I'll keep you updated

Share this post


Link to post

is there a way to make this mount the disk as a transmit drive? i had modified the old applescript transmit extension by adding 'with mount' to the script, but I'm not sure what to change in the php version. (applescript version below)

 

on alfred_script(q)
tell application "System Events"
	set rn to count (every process whose displayed name is "Transmit")
end tell
tell application "Transmit"
	activate
	set countWindows to count every window
	countWindows
	if q is not "" then
		if countWindows > 0 then
			set myFave to item 1 of (favorites whose (address is q) or (name is q))
			if rn > 0 then
				tell current tab of (make new document at end)
					connect to myFave with mount
				end tell
			end if
			if rn = 0 then
				tell current tab of (document of first window)
					connect to myFave with mount
				end tell
			end if
		end if
	end if
end tell
tell application "Transmit"
	delay 10
	quit
end tell
end alfred_script

 

 

Thanks!

 

-Andrew

Share this post


Link to post

Hi,

 

This workflow is awesome. 

I just noticed an issue when the favorite name has an ampersand (&)

 

In that case, we get:

 

 

13/02/13 16:19:47,012 Alfred 2[10427]: [ERROR] Script XML Parse Error occured Error Domain=NSXMLParserErrorDomain Code=4 "The operation couldn’t be completed. (NSXMLParserErrorDomain error 4.)"
 
Workaround is easy: don't use ampersand in names ;-)
 
Cheers

Share this post


Link to post

Would anyone mind adapting this for Yummy FTP?  As much as I would love to teach myself programming enough to do this on my own I really should not take the time right now.

Share this post


Link to post

"unable to locate transmit favorites folder" --> but I have about 15 favorites sites. afaik, nothing strange in my setup i see my favorites file in library. any ideas?

Share this post


Link to post

If anyone is interested, like @capsella, I have a modified version of the workflow that will mount favourites to the filesystem. Use "mnt ..." to get the query started.

 

is there a way to make this mount the disk as a transmit drive? i had modified the old applescript transmit extension by adding 'with mount' to the script, but I'm not sure what to change in the php version. (applescript version below)

 

Thanks!

 

-Andrew

Share this post


Link to post

I can't get this to work? I type 'ftp', hit return, then type the name of a favourite in transmit but nothing happens. I'm using Transmit 4.3.3 (MAS).

To use this, you type:

ftp [NAME OF YOUR FAVORITE]

 

Replace [NAME OF YOUR FAVORITE] with your actual favorite. No need to hit return after 'ftp'.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...