Tuesday, January 23, 2018

#1 2003-04-23 08:47:47 pm

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

Easy Launch

I wrote this small script to quickly open applications, without having to navigate to them. When launched, it will prompt you to enter the name of an app, and will then try to open that program. If it cannot find that program, it will present a dialog asking you to find that program.
I save it as a stay-open application, but that's just my preference. Hope someone can use it. (:

OS version: OS X

Applescript:

on run
   -- When first launched, do this
   set theapp to text returned of (display dialog "Launch what program?" default answer "")
   tell application theapp to activate
end run

on reopen
   -- When re-launched, do this
   set theapp to text returned of (display dialog "Launch what program?" default answer "")
   tell application theapp to activate
end reopen


One mans trash is another mans treasure

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)