#!/bin/sh # MetaCard 2.4 stack # The following is not ASCII text, # so now would be a good time to q out of more exec mc $0 "$@" Launch 3 d x^W Launch OS X app U Lucida Grande cREVGeneral debugObjects bookmarks handlerList scriptSelection char 1 to 0prevHandler tempScript script @ ^W AppleScript )` D T cREVGeneral revUniqueID 1048115292735 tell application "Finder" 2 choose file with prompt "Find the app to launch" 0 0 end tell ` A R Find & Launch Epon mouseUp do fld "AppleScript" as AppleScript put the result into appPath replace ":" with "/" in appPath replace quote with "" in appPath delete word 1 of appPath if char 1 to 2 of revAppVersion() <> "1." then set the itemDel to "/" delete item 1 of appPath end if delete last char of appPath put "/" before appPath put appPath into fld "App" -- if Rev started the app, it can't relaunch it again without this -- even if it has been quit in the interim if the openProcesses contains appPath then kill process appPath end if launch appPath if the result is not empty then answer the result end mouseUp d cREVGeneral scriptChecksum bj 3yrevUniqueID 1048115306792 bookmarks breakPoints handlerList mouseUptempScript prevHandler mouseUpscriptSelection char 380 to 379script y
on mouseUp
do fld "AppleScript" as AppleScript
put the result into appPath
replace ":" with "/" in appPath
replace quote with "" in appPath
delete word 1 of appPath
if char 1 to 2 of revAppVersion() <> "1." then
set the itemDel to "/"
delete item 1 of appPath
end if
delete last char of appPath
put "/" before appPath
put appPath into fld "App"
-- if Rev started the app, it can't relaunch it again without this
-- even if it has been quit in the interim
if the openProcesses contains appPath then
kill process appPath
end if
launch appPath
if the result is not empty then answer the result
end mouseUp
App )` D &