Creating a Dock Shortcut for Platform Assistant (paserver) on a Mac

It may be handy to create a “shortcut” to start the paserver application without typing the password. I forgot the password I used at OS X profile a few times and this solution solved my problem. To do this simple task I used Apple Script.

Steps:

  1. Start the AppleScript Editor.app program located at Applications -> Utilities folder.
  2. Paste the script below adjusting the directory to the paserver application.
  3. Test just pressing the button Run.
  4. Save it as an application:
    • Menu: File -> Save As…
    • Select File Format = Application
    • Select an adequate file name
  5. Locate the application you just created via Finder and drag it to your Dock
Script:
tell application "Terminal"
	do script with command "cd /Users/myuser/Applications/Embarcadero/PAServer; ./paserver -password=ADUG"
end tell

One suggestion is to save a copy of this file using the format Script just in case you deleted your profile and don’t remember the password, or you simply want to change the password or changed the paserver directory and you can’t remember the script.

Just remember that you are running an apple script application to open the terminal and execute the paserver application with parameters, because when you click at your new application, it will open a terminal window and this will be marked in your Dock as running and not the application you create (See Figure 1).


Figure 1. PAServer application

Posted in IDE, Mac OS Tagged with: ,
0 comments on “Creating a Dock Shortcut for Platform Assistant (paserver) on a Mac
1 Pings/Trackbacks for "Creating a Dock Shortcut for Platform Assistant (paserver) on a Mac"
  1. […] Creating a Dock Shortcut for Platform Assistant (paserver) on a Mac […]

2015 Symposium

Registrations are now open!

Take advantage of the Early Bird Special and register before March 1.
Not an ADUG member? Your subscription is FREE for the first year if you join and register for the symposium together!

Melbourne - March 26

Members  —  Non-Members

Canberra - March 27

Members  —  Non-Members

Full details on the Symposium page

2014 Symposium Sponsors

The ADUG wishes to acknowledge the assistance of the following companies whose sponsorship helps to make our Symposium possible:

Elevate Software Arena Business Technology Help and Manua Nexus DB Raize Software TCG-Logo

Archives