Create terminal command shortcut icon

Hello,
If someone would be kind enough to help me out with creating a shortcut terminal command that would be great. I was messing around with the Android SDK just for fun and was wondering how you can get it to launch a specific avd, so from Terminal I would type
/user/myaccount/applications/andriod/tools/emulator -avd Android-2.3.3
And it would open, how would you create a shortcut on the desktop to do this so I can just double click and it will open? In windows I would just modify the target and add the -avd or create a batch file, but not sure how to do this in OSX.
Thanks

so in text editor I put this line which if I open terminal and paste it will launch the emulator.
/Applications/Android-Emulator/tools/emulator -avd Android-2.3.3
saved the file, then did a chmod +x ./filename
change the extention to .command
When I double click I get an error
Last login: Thu Jul 14 21:24:12 on ttys000
/Users/Me/Desktop/Android.command ; exit;
MacBook-Pro:~ me$ /Users/Me/Desktop/Android.command ; exit;
/Users/me/Desktop/Android.command: line 1: {rtf1ansiansicpg1252cocoartf1038cocoasubrtf360: command not found
/Users/me/Desktop/Android.command: line 2: syntax error near unexpected token `}'
/Users/me/Desktop/Android.command: line 2: `{\fonttbl\f0\fswiss\fcharset0 Helvetica;}'
logout

Similar Messages

  • To create a desktop shortcut icon for the application for a jar file

    Hi
    I have created a jar file for my application. when i double click this jar file, the application opens.
    What i want is--
    Instead of user clicking on the jar file, my application also has to create a desktop shortcut icon.
    If the user clicks on the icon which is on the desktop the application should open.
    Please suggest me.
    Thanks in advance.

    >
    Please suggest me.>Launch the application using java webstart. A webstart launch offers things like a splash screen, automatic updates, and desktop integration in the form of desktop shortcuts and program menu items. If the launch file specifies icons, they are used for the shortcuts, otherwise a generic icon is used.
    For a comparison between a sandboxed webstart launch and a plain app., try the [Text Width Checker|http://pscode.org/twc/].
    While the TWC can run OK within the security sandbox, many applications need to be digitally signed and request extended permissions, to do what they need to do.
    STBC is an all-permissions webstart launch.
    Edit 1:
    And for one that definitely suggests desktop shortcuts (I usually avoid them, in favor of a menu item only), try the sandboxed [demo of the PrintService|http://pscode.org/jws/api.html#prs], which prompts the user to choose.
    Edited by: AndrewThompson64 on Sep 2, 2008 10:49 PM

  • Create Terminal connection shortcut on desktop?

    How do I create a desktop shortcut to my added remote connection(telnet) in Terminal application?

    Thank you nbar.
    I was able to make the shortcut.
    Is there a way that I can have a shortcut open my server connection directly?
    The shortcut opens Terminal...but I still have to make 5 additional clicks to open up the remote telent connection.
      [Shell>New Connection>Remote Login (Telnet)>+select IP+Click Connect]

  • Cannot create shortcut icon

    Hi:
    I am on Windows 2000 and I executed the following command to import Java Webstart app into system cache and to create a shortcut on the desktop.
    javaws -shortcut -system -import http://localhost:7001/uif/uifTestClient.jnlp
    WebStart imported the App into system cache alright but it failed to create the shortcut. Also the Java Cache Viewer shows the shortcut icon disabled.
    Any Idea?
    Thanks
    -ken

    WebStart imported the App into system cache alright
    but it failed to create the shortcut. ..
    javaws -shortcut -system -import
    http://localhost:7001/uif/uifTestClient.jnlp
    I see the from the guide here..
    http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/javaws.html#options
    "-shortcut
    Allows the creation of shortcuts during silent import."
    However there is no mention of '-silent' in your
    command above.

  • How do I run a terminal command from a dashboard icon

    Hello
    I run the following terminal command repetitively and would like to simplify by running from an icon on the dashboard.
    sudo killall coreaudiod
    Thanks
    John

    Look at creating a simple AppleScript app using the "do shell script with administrator privileges".  Google can help if you use that search string.
    <http://www.maclife.com/article/howtos/how_authenticate_applescripts_administrato r_privileges>
    Applications -> Utilities -> AppleScript Editor
    do shell script "killall coreaudiod" with administrator privileges
    Save as an AppleScript Application and put the application in your Dock.  That should be just as easy to launch as using a dashboard widget.

  • How do I put a Shortcut Icon on my Desktop linking to a certain Webpage, like I could do with I.E./Google? Where do I find "Create Shortcut' ???

    Question
    How do I put a Shortcut Icon on my Desktop linking to a certain Webpage, like I could do with I.E./Google? Where do I find "Create Shortcut' ???

    Hey, Dynamite !
    Thanks so much for that ... what a 'dynamite' solution. It's so easy. I don't know how you people know all of these things ! But one last thing if you can help me - I've just switched over to Mozilla/Firefox from I.E., and now I cannot open my Hotmail from Mozilla/Firefox. I log in, it goes to my 'Inbox' page, but when I click on an Email letter to open it, nothing happens. I can't even go into 'Drafts' or 'Delete' or anything.
    MitziB.

  • How to create shortcut icons for settings

    how to create shortcut icons for settings

    I also have this issue. Apple has indicated they want to have a larger presence in businesses. VPN is a huge part of any business network. Frustrations are hightened by the VPN disconnecting whenever the device Auto-locks. We have a definite need to make VPN's on iPads less tedious...

  • I've used a terminal command to change default send keyboard shortcut and now it doesn't work at all!

    My friend provided me with a Terminal command allow me to use Cmd+Enter to send an email (muscle memory from Outlook, hard to forget!)
    Command was:
    defaults write com.apple.mail NSUserKeyEquivalents -dict-add "Send" "@\\U21a9"
    Did that, and it didn't add the Cmd+Enter instruction but removed the Cmd+Shift+D instruction, so I had NO keyboard shortcut. Then Cmd+Enter started working. For a while. Now I'm back to getting the irritating error bleep sound, and having no functional keyboard shortcut for sending mail.
    Does anybody have any advice?

    Try
    defaults delete com.apple.mail NSUserKeyEquivalents
    Then, relaunch Mail.

  • Is there (or can I create) a keyboard shortcut for the command "export"?

    is there (or can I create) a keyboard shortcut for the command "export"?

    Keyboard Shortcuts are created in the System Preferences app, Hardware section, Keyboard, Keyboard Shortcuts tab.
    Select Application Shortcuts on the left.
    Click the "+" sign on the right and in the dialog box that pops up, enter: "Export..." and your preferred key combination. Here's an example:
    Keep in mind that when you enter the name of the action in a layered menu, such as File > Export..., or Share > Export..., you are only going to enter the last menu choice, not the higher levels.
    Regards,
    Jerry

  • How do I keep the website's icon when creating a desktop shortcut as opposed to the firefox logo?

    When I click a website's icon in the address bar in Firefox and drag it to my desktop to create a shortcut to said site, the shortcut is created with Firefox's icon. I want to know how to keep the site specific icon when creating these shortcuts. I know that once the shortcut is created you can go into properties and choose from several generic icons but I don't want those cheesy icons. Can anyone help?

    If you drag a link or favicon on the left end of the location bar onto the desktop to create an internet shortcut then that shortcut gets the icon of the default browser.<br />
    If you want a different icon (favicon) then you have to assign that icon yourself to the desktop shortcut (right-click: Properties).<br />
    You can usually get the favicon if you append "favicon.ico" to the main domain of a website (e.g. http://www.mozilla.com/favicon.ico ) to display the favicon in a tab and save that image to a folder or see if you can find it in "Tools > Page Info > Media".<br />

  • Understanding a Create Folder Terminal Command

    Good morning Apple users,
    An ex-colleague of ours created a Terminal command for our workplace that generates multiple blank folders for work documentation to be saved into per the "job number/folder number". i.e Job Number 17813 would go into the folder of the same number.
    For obvious reasons we would prefer to avoid having to manually generate such folders.
    He left the script with us but we are having trouble understanding it's use to generate new folders with the same structure. I'm hoping someone could break it down for me and help me understand how it works?
    I've attached the script as it's written for you to dissect.
    The above is the script within Text/Edit. When opening the file and attempting to do the requested "Please enter the thousands part of the SRO range: " in multiple combinations from "18000" to "18000 - 18999" and simply "18" it responds with the following message, Attached below:
    I'm sure our issue is something minor and we are just missing some tiny detail. Your assistance in getting this working is greatly appreciated!
    Thanks in advance.

    I haven't run your script, but the relevant part seems to be the error message:
    OSError: [Errno 2] No such file or directory: '/Volumes/OSX Raid/Service/Service Documentation/'
    To me, this says that the target parent directory doesn't exist, and is likely failing on the line:
    os.chdir(path)
    since you can't change to a non-existent directory. The rest of the script is irrelevant at this point.
    So you need to look at why this command might fail. The most obvious problem would be that it doesn't exist - maybe the volume isn't mounted, or the path doesn't match _exactly_. My python is rusty, but the spaces in the path may also be a problem (most shell commands barf at spaces in path names) - you might want to identify the path as a 'raw' string:
    path = r'/Volumes/OSX Raid/Service/Service Documentation/'
    (note the leading 'r')

  • How to create a keyboard shortcut in firefox for email link

    I would like to create a keyboard shortcut for firefox for the EMail Link menu item. I specified shift-Command-S as the keyboard shortcut. When I hit the key sequence the File on the menubar flashes but the Email Link window never opens. Does anyone have a clue as to what I need to do to get this to work or is there a reason it doesn't work. I do use Outlook for my mail client. That shouldn't be a problem because when I manually select EMail Link from the File menu Outlook is properly used.
    thanks for your help
    john

    You need automator to create services, as detailed in http://discussions.apple.com/thread.jspa?threadID=2241804 a four-parter by Sal Saghoian on *Automation in Snow Leopard*
    This, describes old and new automator—services stuff:
    http://www.reynoldsftw.com/2009/08/automator-and-finder-interactions-in-os-x-10- 6/
    Alternatively, just save the script
    *+tell application "Firefox" to activate+*
    as an app, put it on the Dock, and click it to activate it. However, seems simpler just to put the FF icon on the Dock and a single click launches it. Why would you want a service or AS to do the same thing?

  • Need a Terminal Command

    Hi, I have no idea how to use terminal so I need code I can copy and paste. I am running iFreeMem and its crashed. These type of apps do not show up in the force quit box so I have no idea how to force quit it. My only idea was Terminal but I don't know how to do it.
    Can someone please help? Has this ever happened to anyone? I just read some articles that made me decide to trash the app altogether, but I need to get it closed first. :o)
    I have to many things going on to shut the computer down at the moment and the iFreeMem screen is in the way of everything (floats on top). Thanks in advance!

    You must know either the correct case sensitive name of the application, such as iFreeMem. If you do then the Terminal command is:
    killall iFreeMem
    Press RETURN.
    However, even though iFreeMem is an application it may fork a process with a different identifier. If so the above command will fail. In this case you need to find the PID - Process IDentifier. In the Terminal enter, top, and press RETURN. If the process is in the listing then you get the PID from the lefthand column. Use the same killall command but with the PID instead of the application name.
    If you cannot find a PID, then you need to restart the computer. If the application runs automatically then you need to uninstall its components. See the following:
    Uninstalling Software: The Basics
    Most OS X applications are completely self-contained "packages" that can be uninstalled by simply dragging the application to the Trash. Applications may create preference files that are stored in the /Home/Library/Preferences/ folder. Although they do nothing once you delete the associated application, they do take up some disk space. If you want you can look for them in the above location and delete them, too.
    Some applications may install an uninstaller program that can be used to remove the application. In some cases the uninstaller may be part of the application's installer, and is invoked by clicking on a Customize button that will appear during the install process.
    Some applications may install components in the /Home/Library/Applications Support/ folder. You can also check there to see if the application has created a folder. You can also delete the folder that's in the Applications Support folder. Again, they don't do anything but take up disk space once the application is trashed.
    Some applications may install a startupitem or a Log In item. Startupitems are usually installed in the /Library/StartupItems/ folder and less often in the /Home/Library/StartupItems/ folder. Log In Items are set in the Accounts preferences. Open System Preferences, click on the Accounts icon, then click on the LogIn Items tab. Locate the item in the list for the application you want to remove and click on the "-" button to delete it from the list.
    Some software use startup daemons or agents that are a new feature of the OS. Look for them in /Library/LaunchAgents/ and /Library/LaunchDaemons/ or in /Home/Library/LaunchAgents/.
    If an application installs any other files the best way to track them down is to do a Finder search using the application name or the developer name as the search term. Unfortunately Spotlight will not look in certain folders by default. You can modify Spotlight's behavior or use a third-party search utility, Easy Find, instead. Download Easy Find at VersionTracker or MacUpdate.
    Some applications install a receipt in the /Library/Receipts/ folder. Usually with the same name as the program or the developer. The item generally has a ".pkg" extension. Be sure you also delete this item as some programs use it to determine if it's already installed.
    There are also several shareware utilities that can uninstall applications:
    AppZapper
    Automaton
    Hazel
    CleanApp
    Yank
    SuperPop
    Uninstaller
    Spring Cleaning
    Look for them at VersionTracker or MacUpdate.
    For more information visit The XLab FAQs and read the FAQ on removing software.

  • Error on Create Database command for Oracle 9i on Red Hat 9

    Error on Create Database command
    CREATE DATABASE ora9i
    LOGFILE
    GROUP 1 ('$HOME/ORADATA/log_01_01_ora9i.rdo') SIZE 10M,
    GROUP 2 ('$HOME/ORADATA/log_02_01_ora9i.rdo') SIZE 10M
    DATAFILE '$HOME/ORADATA/system_01_ora9i.dbf' SIZE 100M
    AUTOEXTEND ON NEXT 50M MAXSIZE 150M
    DEFAULT TEMPORARY TABLESPACE temp
    TEMPFILE '$HOME/ORADATA/temp_01_ora9i.dbf' SIZE 15M
    AUTOEXTEND ON NEXT 5M MAXSIZE 30M
    CHARACTER SET WE81SO8859P1
    NATIONAL CHARACTER SET AL16UTF16
    CREATE DATABASE ora9i
    ERROR at line 1:
    ORA-01092:ORACLE instance terminated. Disconnection forced.
    initora9i.ora file contents :
    background_dump_dest=$HOME/ADMIN/BDUMP
    core_dump_dest=$HOME/ADMIN/CDUMP
    db_name=ora9i
    db_files= 80
    db_file_multiblock_read_count=8
    db_block_buffers=100
    shared_pool_size = 3500000
    log_checkpoint_interval = 10000
    processes=50
    parallel_max_servers=5
    log_buffer = 32768
    max_dump_file_size = 10240
    global_name = TRUE
    control_files=$HOME/ORADATA/ctrl01.ctl
    undo_management=AUTO
    user_dump_dest=$HOME/ADMIN/UDUMP
    -------------------------------------------------

    Pleae include REUSE keyword at the end of each file location as shown below...
    CREATE DATABASE ora9i
    LOGFILE
    GROUP 1 ('$HOME/ORADATA/log_01_01_ora9i.rdo') SIZE 10M REUSE,
    GROUP 2 ('$HOME/ORADATA/log_02_01_ora9i.rdo') SIZE 10M REUSE
    DATAFILE '$HOME/ORADATA/system_01_ora9i.dbf' SIZE 100M REUSE
    AUTOEXTEND ON NEXT 50M MAXSIZE 150M
    DEFAULT TEMPORARY TABLESPACE temp
    TEMPFILE '$HOME/ORADATA/temp_01_ora9i.dbf' SIZE 15M REUSE
    AUTOEXTEND ON NEXT 5M MAXSIZE 30M
    CHARACTER SET WE81SO8859P1
    NATIONAL CHARACTER SET AL16UTF16

  • When I drag a favicon to my desktop it becomes a Firefox shortcut icon instead!

    I know that you can create a simple shortcut to a web page by dragging the favicon icon for the page from the top bar to the desktop. My problem is that whenever I attempt to do so, I end up creating a shortcut that has the firefox symbol -- the unique icon of the website fails to carry over to the desktop. I am not having the same problem in History or in Bookmarks, just my desktop.

    If you drag a link or favicon on the left end of the location bar onto the desktop to create an internet shortcut then that shortcut gets the icon of the default browser.
    If you want a different icon (favicon) then you have to assign that icon yourself to the desktop shortcut (right-click: Properties).
    You can usually get the favicon if you append "favicon.ico" to the main domain of a website (e.g. http://www.mozilla.com/favicon.ico ) to display the favicon in a tab and save that image to a folder or see if you can find it in "Tools > Page Info > Media".

Maybe you are looking for

  • How could i get access to MDM API,Is it available to all Enterprise accounts?e

    Hi , I am trying to develop an enterprise application which needs to list all the installed Enterprise apps in the device.Also there is an option to delete the installed enterprise apps from device.I found that this can be done only by setting up a c

  • Newbie: Bitmap does not display when copy onto stage

    Hello, I am a complete bigginer. I looked at youtube videos and adobe help but I can't find the solution. I am trying to paste a bitmap (any bitmap) onto the stage. I just get the box outline on the stage. I have imported several basic bitmaps into t

  • Restoring data from Itunes to Ipod

    I have the 5th generation Ipod Video. In trying to add some post cast and music to my ipod...I loaded the music,etc. on I tunes...then pluged my ipod in...it walked thru the loading process....and said that the update was complete. However, non of th

  • Mass User Deletion in Portal

    HI Experts, Is there anyway to Delete large number of users from Portal , we know about Mass user creation but what about Deletion? Any thing regarding the same will be veryhelp and will be rewarded With Regards, Dayakar.

  • Error connecting to open database in workflow.

    Hi all, I am getting following error while trying to open a database inside workflow. 1700: Could not connect with username/password 'test/test@testENV' ('Error while trying to retrieve text for error ORA-01019 I have oracle instantclient_10_2 instal