Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
# Transmit 4 Workflow for Alfred app

Workflow for searching and opening Favorites in Transmit 4 App. It's really _fast_, because it reads the SQLite Database or XML datasource in latests releases of Transmit 4.
Workflow for searching, opening and/or mounting Favorites in Transmit 4 App. It's really _fast_, because it reads the SQLite Database or XML datasource in latests releases of Transmit 4.

There are already at least 2 Transmit workflows, but one is incompatible with latests Transmit 4 and the other, although very good, uses AppleScript to do the searching, and thus you need to wait for Transmit to open to get feedback. This is particulary slow on non SSD machines.

## Usage
Type the keyword (default _ftp_) and start typing the name of the favorite to search; dead simple.
**Connect** - Type the keyword (default _ftp_) and start typing the name of the favorite to search; dead simple.

![search](https://raw.github.com/ramiroaraujo/alfred-transmit-workflow/master/screenshots/search.png)

**Mount** - Type the keyword (default _ftpmount_) and start typing the name of the favorite to mount as a Transmit Disk.

## Installation
For OS X 10.9 Mavericks, Download the [alfred-transmit.alfredworkflow](https://github.com/ramiroaraujo/alfred-transmit-workflow/raw/master/alfred-transmit.alfredworkflow) and import to Alfred 2.

Expand All @@ -20,4 +22,5 @@ For Previous OS X Versions, Download the [alfred-transmit.alfredworkflow](https:
* _2014-01-03_ - Search in both Favorite name and host
* _2014-01-20_ - Added support for Favorites.xml
* _2014-01-30_ - Rebuilt XML search to use different Ruby xml parser
* _2014-03-14_ - Corrected bug that prevented listing of anonymous ftp accounts
* _2014-03-14_ - Corrected bug that prevented listing of anonymous ftp accounts
* _2015-01-15_ - George Böhnisch - Added the ability to mount a favorite as a Transmit Disk
Binary file modified alfred-transmit.alfredworkflow
Binary file not shown.
132 changes: 119 additions & 13 deletions workflow/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,28 @@
<string></string>
</dict>
</array>
<key>422F1D87-A768-4B92-843D-C8C279EE7BA2</key>
<array>
<dict>
<key>destinationuid</key>
<string>FE1098F7-C718-4415-9D90-909C3F46A8D8</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
</dict>
</array>
<key>FE1098F7-C718-4415-9D90-909C3F46A8D8</key>
<array>
<dict>
<key>destinationuid</key>
<string>DC542A93-ECDF-42FA-B8A7-90C4AE6CA005</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
</dict>
</array>
</dict>
<key>createdby</key>
<string>Ramiro Araujo</string>
Expand Down Expand Up @@ -147,6 +169,50 @@ end alfred_script</string>
<key>version</key>
<integer>0</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>argumenttype</key>
<integer>2</integer>
<key>keyword</key>
<string>ftprebuild</string>
<key>subtext</key>
<string>Cache is rebuilt once per day, rebuild it manually if necesary</string>
<key>text</key>
<string>Rebuild Transmit Favorites cache</string>
<key>withspace</key>
<false/>
</dict>
<key>type</key>
<string>alfred.workflow.input.keyword</string>
<key>uid</key>
<string>1772844A-8F30-4D06-9A88-7665028E51B0</string>
<key>version</key>
<integer>0</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>lastpathcomponent</key>
<false/>
<key>onlyshowifquerypopulated</key>
<false/>
<key>output</key>
<integer>0</integer>
<key>removeextension</key>
<false/>
<key>sticky</key>
<false/>
<key>title</key>
<string>Favorites cache Rebuilt</string>
</dict>
<key>type</key>
<string>alfred.workflow.output.notification</string>
<key>uid</key>
<string>44F15B00-84CC-4B1B-9B79-1BB5091AEDB5</string>
<key>version</key>
<integer>0</integer>
</dict>
<dict>
<key>config</key>
<dict>
Expand All @@ -167,21 +233,15 @@ end alfred_script</string>
<dict>
<key>config</key>
<dict>
<key>argumenttype</key>
<integer>2</integer>
<key>keyword</key>
<string>ftprebuild</string>
<key>subtext</key>
<string>Cache is rebuilt once per day, rebuild it manually if necesary</string>
<key>text</key>
<string>Rebuild Transmit Favorites cache</string>
<key>withspace</key>
<key>applescript</key>
<string>on alfred_script(query) set transmitWasOpen to is_running("Transmit") tell application "Transmit" activate set fav to item 1 of (favorites whose identifier is query) if document 1 exists then if remote browser of current tab of document 1 exists then set previous_tab to current tab of document 1 set current tab of document 1 to (make new tab at end of document 1) tell current tab of document 1 connect to fav with mount close end tell set current tab of document 1 to previous_tab else tell current tab of document 1 connect to fav with mount end tell end if else tell current tab of (make new document at end) connect to fav with mount close end tell end if end tell if transmitWasOpen is false then tell application "Transmit" quit end tell end if return the name of favend alfred_scripton is_running(appName) tell application "System Events" to (name of processes) contains appNameend is_running</string>
<key>cachescript</key>
<false/>
</dict>
<key>type</key>
<string>alfred.workflow.input.keyword</string>
<string>alfred.workflow.action.applescript</string>
<key>uid</key>
<string>1772844A-8F30-4D06-9A88-7665028E51B0</string>
<string>FE1098F7-C718-4415-9D90-909C3F46A8D8</string>
<key>version</key>
<integer>0</integer>
</dict>
Expand All @@ -198,13 +258,44 @@ end alfred_script</string>
<false/>
<key>sticky</key>
<false/>
<key>text</key>
<string>{query}</string>
<key>title</key>
<string>Favorites cache Rebuilt</string>
<string>Mounted Transmit Disk</string>
</dict>
<key>type</key>
<string>alfred.workflow.output.notification</string>
<key>uid</key>
<string>44F15B00-84CC-4B1B-9B79-1BB5091AEDB5</string>
<string>DC542A93-ECDF-42FA-B8A7-90C4AE6CA005</string>
<key>version</key>
<integer>0</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>argumenttype</key>
<integer>0</integer>
<key>escaping</key>
<integer>62</integer>
<key>keyword</key>
<string>ftpmount</string>
<key>runningsubtext</key>
<string>working...</string>
<key>script</key>
<string>/usr/bin/ruby ./feedback.rb {query}</string>
<key>subtext</key>
<string>Search for a Favorite to Mount</string>
<key>title</key>
<string>Mount a Transmit Disk</string>
<key>type</key>
<integer>0</integer>
<key>withspace</key>
<true/>
</dict>
<key>type</key>
<string>alfred.workflow.input.scriptfilter</string>
<key>uid</key>
<string>422F1D87-A768-4B92-843D-C8C279EE7BA2</string>
<key>version</key>
<integer>0</integer>
</dict>
Expand All @@ -228,6 +319,11 @@ end alfred_script</string>
<key>ypos</key>
<real>10</real>
</dict>
<key>422F1D87-A768-4B92-843D-C8C279EE7BA2</key>
<dict>
<key>ypos</key>
<real>340</real>
</dict>
<key>44F15B00-84CC-4B1B-9B79-1BB5091AEDB5</key>
<dict>
<key>ypos</key>
Expand All @@ -243,6 +339,16 @@ end alfred_script</string>
<key>ypos</key>
<real>80</real>
</dict>
<key>DC542A93-ECDF-42FA-B8A7-90C4AE6CA005</key>
<dict>
<key>ypos</key>
<real>320</real>
</dict>
<key>FE1098F7-C718-4415-9D90-909C3F46A8D8</key>
<dict>
<key>ypos</key>
<real>320</real>
</dict>
</dict>
<key>webaddress</key>
<string>https://github.com/ramiroaraujo/alfred-transmit-workflow</string>
Expand Down