Desktop "shortcuts/aliases"

No more questions - please go to http://www.syncovery.com/forum instead

Moderator: SuperFlexible Administrators

Desktop "shortcuts/aliases"

Postby pmarking on Mon May 07, 2012 1:57 pm

Is there any easy way to set up a shortcut/alias to run a profile directly from outside of the main program, e.g., from an icon on my desktop?

For all I know, there is a laughingly easy way to accomplish this staring me in the face from some menu, and I'm just missing it... but as of now, the only way I was able to get this done was to do the following:
1. Create a shell script file with the command lines to start the profile.
2. chmod the file to be executable (necessary if you don't want to have a .command extension)
3. Customize the resulting ugly icon by opening the Info palette and dragging the SuperFlexible icon onto it (for aesthetic purposes only).

While this works, it has the following drawbacks:
1. It automatically opens terminal and leaves the process running (even if you set the window to auto-close on disconnect).
2. It's a hassle to do this for every profile for which I'd like a shortcut.

Any advice/suggestions/guidance greatly appreciated!!
pmarking
 
Posts: 5
Joined: Mon May 07, 2012 1:49 pm

Re: Desktop "shortcuts/aliases"

Postby superflexible on Tue May 08, 2012 4:03 am

I want to provide an automated way as a menu item or button in the program in a future version.

Right now, there is a prettier way to do this using the AppleScript Editor from Applications->Utilities.

Type the following script:

Code: Select all
do shell script "/Applications/Syncovery.app/Contents/MacOS/Syncovery /RUNX=\"My Backup Job\" /U"


This example uses our new product name Syncovery.

Note that the double quotes around the profile name have to be prefixed with backslashes due to the nesting of double quotes.

Save this script as an Application and make sure that the name doesn't contain any spaces.

When you run it, it will not use a Terminal window.
User avatar
superflexible
Site Admin
 
Posts: 2478
Joined: Thu Dec 31, 2009 3:08 pm

Re: Desktop "shortcuts/aliases"

Postby pmarking on Tue May 08, 2012 10:51 am

That is a great solution, and I'm very grateful for the quick response.

(As a recent Windows-to-Mac immigrant with a strong Linux background, I thought immediately of the shell script solution, but was not familiar with this simple and useful AppleScript ability! I'm sure this will be useful in many other contexts, so a double thank-you!)

This definitely works much better!
pmarking
 
Posts: 5
Joined: Mon May 07, 2012 1:49 pm


Return to Mac Support * new forum: www.syncovery.com/forum

cron