can please anyone give me an advice. The following script, wich opened a text file in sublime text, worked fine with the latest dtpo and OS X Mountain Lion. Since i use the Mavericks GM the script doesn’t work anymore. I have no idea…
Thanx in advance!
Efty
property pTitle : "Open in SublimeText"
property pVer : "1.00"
set st2 to POSIX path of (path to application "Sublime Text")
set subl to st2 & "Contents/SharedSupport/bin/subl"
tell application id "com.devon-technologies.thinkpro2"
set {lstSeln, strPath, strType} to {selection, "", ""}
if lstSeln ≠ {} then tell item 1 of lstSeln to set {strPath, strType} to {path, kind}
if strType ≠ "Text" then return
end tell
if strPath ≠ "" then
delay 0.2
do shell script "'" & subl & "' '" & strPath & "'"
end if