skEdit upload User Script
Well I’m slowly weaning myself off Dreamweaver 8, and switching to skEdit full time. Dreamweaver is just too un-Mac like.
The following is an skEdit user script. skEdit user scripts are based on the Xcode user script format. This script uploads the current file using the Auto-Upload feature of Interarchy.
Ideally I’d like to map this to command+u or command+option+u (to match Dreamweaver). However these shortcuts are used by other menu commands (Path to File/Underline). I tried the Keyboard & Mouse prefpane, but it doesn’t stick.
#! /bin/sh
#
# Upload.sh - Uploads the current file using Interarchy Auto-upload.
#
# -- PB User Script Info --
# %%%{PBXName=Upload}%%%
# %%%{PBXInput=None}%%%
# %%%{PBXOutput=Discard}%%%
# %%%{PBXKeyEquivalent=@~u}%%%
#
osascript < < eof
set p to "%%%{PBXFilePath}%%%"
set a to POSIX file p
tell application "Interarchy"
open a
end tell
eof
I’ve also upgraded to Interarchy 8.1 since the Stairways team have fixed a lot of bugs between 8.0 and the current version. The UI is now very refined with a 10.4 unified interface and detailed icons enhancing the looks of the application, some cool new features such a Amazon S3 support which I want to look into further, as well as improved mirroring options such as dry-run. The other main factor is that at $19 the upgrade price is a steal. However, the above script should also work with version 7.