Re: How do I create a launch-icon on the Mac desktop?



In article <1191330803.335995.250750@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
support.accountz@xxxxxxxxxxxxxx wrote:

I guess what I actually meant was "A shortcut that works" i.e.
doubleclicking either icon, the original or the Desktop shortcut does
nothing whereas typing the above path in the CLI works - so I guess my
question is: how do I create a Desktop icon that, when you double-
click it, it fires up this command:
 
/Developer/qt/designer.app/Contents/MacOS/designer

The Finder seems to work so that it merely hands over a reference of the
file clicked on to the launch program. X11 executes the file in a bash
shell. For some reason, Terminal does not accept this.

So one way is to write an ordinary script, say in a console
  cat > foo
  /Developer/qt/designer.app/Contents/MacOS/designer
  ^D
  chmod +x foo
And then, in Finder, Get Info of "foo", and set it to launch to X11. X11
will then create a bash shell, and execute the script.

Hans Aberg
.



Relevant Pages

  • File Type assignment details
    ... I've done some file type assignment to a program I've made such that e.g. ... when I double click on files of type .foo it will be openened in my program. ... key controls this? ... How can I control the icon for the 'document' files of type foo. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: HOTMAIL ICON
    ... Email client (MS Outlook Express, if the account is old enough, Windows ... MSN Browser, an application which is used with an MSN account, either ... I've had Hotmail accounts since 1999, or so, and never had a desktop icon. ... if I wanted one; I'd create a desktop shortcut to ...
    (microsoft.public.internet.mail)
  • Re: Wheres desktop icon for outlook 2003 ?
    ... The setup doesn't create a desktop shortcut under Windows XP. ... Windows XP logo requirements) For what its worth, ... There are steps that can restore the icon to the desktop, ...
    (microsoft.public.outlook)
  • Re: System Tray
    ... still think it is easier to create a desktop shortcut as I described than ... doesn't really matter a jolt which way it is.. ... I have an icon there as ... Why you think "it is handy to have one on the desktop as well." ...
    (microsoft.public.windowsxp.newusers)
  • gnome-terminal --title and enlightenment icons
    ... If I start "gnome-terminal --title foo" and turn it into an icon, ... if I use the xterm escape characters to update the ... Vote Libertarian! ...
    (Debian-User)