Not start automatically my application  when the computer starts

Hello sir,
I create a desktop application for Mac x. My requirements is to start application when system starts.The execution file is **.command. create plist file on ~/Library/LaunchAgents/**.plist. But they won't start automatically.
This my script
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>Printapp</string>
<key>OnDemand</key>
<true/>
<key>ProgramArguments</key>
<array>
<string>/bin/bash</string>
<string>/Users/apple/printapp/bin/print.command</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
anything wrong in this script?...i don't have permission for run as root user.

You're running a 'postscript' file in the Installer ?
If I understand you correctly I think this page will help:
http://stackoverflow.com/questions/5449135/how-can-a-cocoa-application-add-itsel f-as-a-global-login-item

Similar Messages

  • Computer crashed, and had to reinstall OS, i thought i had library on disc, but not. how can i get my library back. it was not on my i-pod when the computer crashed.

    i lost all of my purchased music when my computer crashed. is there any way to re download my previous purchases now that the OS has been reinstalled?

    Refer to this article:
    iTunes: How to re-create your iTunes library and playlists
    http://support.apple.com/kb/HT1451

  • Bluetooth no longer loads automatically when the computer starts

    I have the Bluetooth Stack version 2.01.21.1. It was working fine. When the laptop booted up, the bluetooth mouse was automatically connected.
    All of a sudden the icon no longer appears automatically in the system tray and so I have to manually connect the mouse each time
    It is still listed in the startup menu on the desktop and it is still checked in startup in the msconfig.
    How do I fix this?
    Thanks in advance

    I have just gotten off the phone with a microsoft tech who actually seems to have fixed this somewhat
    He went to start/run to get to services.msc.
    He chose "SSDP Discovery Services" which "enables discovery of
    UPnP devices on your home network" and DISABLED it.
    Go figure
    The BT icon now appears in my system tray and starts up automatically when the computer starts.
    I say somewhat because It still disconnects if left idle for a long period, which it did not do previously, but at least it is there when I log on.
    I want to mention that I have a Dell, not a Toshiba (did not realize this forum was for Toshiba laptops rather than Toshiba software) but perhaps
    you will find this information useful.
    Also, at http://technet.microsoft.com/en-us/sysinternals/bb963902.aspx you will find an autorun tool that lets you fix what is or is not
    in the startup menus. It seems to work better than using msconfig which on my laptop was not making a difference as to what started up and what did not.
    It is meant for IT professionals so I would not mess with it too much. However if you just check or uncheck in the startups for the BT manager you will
    not do any damage.

  • What happens when the computer get too full of e-mails?  Will it automatically start deleting ... or give you some kind of warning??  I never delete personal mail right away since I might want to refer back to it, and then the first thing I know, I've got

    What happens when the computer get too full of e-mails?  Will it automatically start deleting ... or give you some kind of warning??  I never delete personal mail right away since I might want to refer back to it, and then the first thing I know, I've got a big backlog. 

    It will not automatically delete any emails; you will need to do that. You may suffer performance  issues in Mail  if you let your mailboxes become too bloated. And, aside from Mail, the files take up a lot of room are photos, videos, and music, so you might want to watch those - every once in a while, check how much hard drive space you have and make sure you empty the trash regularly. Checking your hard drive space: highlight your Macintosh HD icon on the desktop; hit Command  + I and check the total capacity, and how much is left.

  • My Mac got hacked. I was working on a word document when the computer suddenly started typing meaningful sentences on its own that describes how the hacker is skillful. At the that time I was on a password protected wifi and file sharing was off.

    This is the first time I get hacked this bad. I was working on a microsoft word document when the computer suddenly started typing meaningful sentences on its own that describes how skillfull the hacker is. At the that time I was on a friends wifi network that is password protected (not sure about the encyrption), the Os X Firewall was on. I was using the admin profile, however, file sharing was off. I'm very careful not to install any suspecious 3rd party software.
    So far I have verified permissions and fixed some errors there, and changed passwords.
    Do I have to erase/format my computer and reinstall the Os? If so is it adequte to use the internet recovery tool or will it use old and possibly infected EFI/Root files?
    Would appreciate the advice of all the Mac experts out there. Thanks

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The following procedure will help identify which such modifications you've installed. Don’t be alarmed by the complexity of these instructions — they’re easy to carry out and won’t change anything on your Mac. 
    These steps are to be taken while booted in “normal” mode, not in safe mode. If you’re now running in safe mode, reboot as usual before continuing. 
    Below are instructions to enter some UNIX shell commands. The commands are harmless, but they must be entered exactly as given in order to work. If you have doubts about the safety of the procedure suggested here, search this site for other discussions in which it’s been followed without any report of ill effects. 
    Some of the commands will line-wrap or scroll in your browser, but each one is really just a single line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then copy it. The headings “Step 1” and so on are not part of the commands. 
    Note: If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. The other steps should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply. 
    Launch the Terminal application in any of the following ways: 
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.) 
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens. 
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid. 
    When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign. 
    Step 1 
    Triple-click anywhere in the line of text below on this page to select it:
    kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}' | open -ef
    Copy the selected text to the Clipboard by pressing the key combination command-C. Then click anywhere in the Terminal window and paste (command-V). I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting. A TextEdit window will open with the output of the command. If the command produced no output, the window will be empty. Post the contents of the TextEdit window (not the Terminal window), if any — the text, please, not a screenshot. You can then close the TextEdit window. The title of the window doesn't matter, and you don't need to post that. No typing is involved in this step.
    Step 2 
    Repeat with this line:
    { sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix\.cron)|org\.(amav|apac|cups|isc|ntp|postf|x)/{print $3}'; echo; sudo launchctl getenv DYLD_INSERT_LIBRARIES; echo; sudo defaults read com.apple.loginwindow LoginHook; echo; sudo crontab -l; } 2> /dev/null | open -ef
    This time you'll be prompted for your login password, which you do have to type. Nothing will be displayed when you type it. Type it carefully and then press return. You may get a one-time warning to be careful. Heed that warning, but don't post it. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator. 
    Note: If you don’t have a login password, you’ll need to set one before taking this step. If that’s not possible, skip to the next step. 
    Step 3
    { launchctl list | sed 1d | awk '!/0x|com\.apple|org\.(x|openbsd)/{print $3}'; echo; launchctl getenv DYLD_INSERT_LIBRARIES; echo; crontab -l 2> /dev/null; } | open -ef
    Step 4
    ls -A /e*/{cr,la,mach}* {,/}Lib*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta}* L*/Fonts .la* 2> /dev/null | open -ef
    Important: If you formerly synchronized with a MobileMe account, your me.com email address may appear in the output of the above command. If so, anonymize it before posting. 
    Step 5
    osascript -e 'tell application "System Events" to get name of login items' | open -ef
    Remember, steps 1-5 are all copy-and-paste — no typing, except your password. Also remember to post the output. 
    You can then quit Terminal.

  • Hello, I am running Mac os 10.6.8. It is shutting down without warning when I walk away from the computer for about 5 minutes. It happened twice. It was not asleep, i had to turn the computer back on...Any ideas...

    Hello, I am running Mac os 10.6.8. It is shutting down without warning when I walk away from the computer for about 5 minutes. It happened twice. It was not asleep, i had to turn the computer back on...Any ideas...
    G. Mendel

    Crashes
    The next time the problem happens, note the date and time the problem occurred, then go to Applications/Utilities/Console and copy the log starting at the time of the crash. Paste the log in a reply. Please do not use a screen shot as they can be hard to read. If there are repeated runs of the same messages, please post only one run. Be selective about what you post and don’t  post huge amounts. Make sure there is no personal data visible. Information learned from Linc Davis.

  • Preview will not print 8.5" x 14", only when the computer feels like it

    This problem has gone on for too long and I don't know what else to do. I have flyers that I cannot print because preview refuses to recognize the document size correctly and consistantly, and I have no other program that can print to our copier.
    This happens with any PDF that is not 8.5" x 11". Both 8.5" x 14" and 11" x 17" exhibit the same problem. First I open a PDF in Preview, then I change the document size in Page Setup to "US Legal" and scale of 100% (the scale is always wrong because it is automatically resizing the document to fit on 8.5" x 11"). Then I go to print, check under Paper Handling and under Destination Paper Size is says "Use documents paper size: US Letter". This does not change no matter how many times I visit Page Setup and no matter how many times I save and re-save the file.
    At random it will recognize the document size as "US Legal", but this happens only when the computer feels like it, at least that's what it seems like because there are no other settings that are different between one file and another that would cause it to print one as Letter and the next one as Legal.
    Some PDFs are created in Photoshop, while other are created in Acrobat. I cannot print directly from Acrobat because of some weird problem with our copier; I cannot print from any Adobe CS3 software.
    I don't know what to do. Any help is greatly appreciated.

    com.apple.print.custompapers.plist didn't exist on my machine, but com.apple.Preview.plist did. I moved it to the desktop as you suggested, opened the files in Preview and this time it worked. Thanks so much!
    I tried looking at the file, but it didn't make any sense to me. Must have been something in there that caused the problem, though.

  • I have a stuck CDR disk in my MacBook. I have tried everything and nothing works. When the computer starts it makes weird sounds and also when I try to eject it. Nothing Works! Please Help.

    I have tried everything and nothing works. When the computer starts it makes weird sounds and also when I try to eject it. Nothing Works! Please Help.

    I had that happen with a MacBook. It turned out that the metal case above the slot was slightly bent down.
    Putting a flat blade screwdriver in the slot and gently twisting it to move the metal case up allowed it to eject. Don't put it in too far you only want to bend the case not the drive.
    The case can get bent down by picking it up with your thumb pressing down on the case above the slot.

  • MacBook Pro's fans start running at high speed when the computer is asleep. Normal?

    The other night, my MacBook Pro's fans started running at high speed when the computer was asleep. Loud enough to wake me up. And this just kept on going until I finally decided to turn the computer off. Is this normal? Is this anything to worry about?

    This is not normal.  See if a SMC reset solves the problem:
    http://support.apple.com/kb/ht3964
    Ciao.

  • I lost power to my MacBook Pro before I had saved anything that I was working on...usually I plug my computer it and power it back on and the documents pop right back up when the computer turns on. That did not happen this time.How can I recover this data

    I lost power to my MacBook Pro before I had saved anything that I was working on...usually I plug my computer it and power it back on and the documents pop right back up when the computer turns on. That did not happen this time. How can I recover my documents?

    If you never saved, auto save does not kick in.
    Peter

  • My computer is not recognizing my ipod shuffle.  The computer says to use the ipod reset utility.  When I tried doing this it told me that it was for a 32 bit version which I obviously do not have.  My computer is only a few months old.  What do I do now?

    My computer is not recognizing my ipod shuffle.  The computer says to use the ipod reset utility.  When I did that it came up with another message that it was only good for a 32 bit version.  I guess I do not have a 32 bit version.  I just purchased my computer a few months ago and it uses the windows 7 operating system.  What do I do now?

    Not sure if this helps:-
    The music files, were they bought from your iTunes account or did someone gift them to you after buying from the iTunes account? If they are yours you can download them again if you clear or de-authorise the ipod, it has to be done by whoever gave you the ipod to do this (the registered  owner). If they were bought for you on another itunes account I don't think Apple let you use them as they are copyrighted and they don't belong to you, they belong to the person who bought them. If the music files where ripped from music cd's then click and drag them to a new folder on your desktop and have the person who gave you the ipod to de-authorise and unregister it. Then you re register it and put your files back from your desktop folder in your iTunes folder and synch. Hopefully that would work.  Any files which you did not buy, I would not know how get around this, best bet is to take it to you nearest Apple  Store and explain that they were gifted to you and ask how you can use them.  The best way to gift music files is to buy the gift tokens and give these. Hope above helps.

  • What does a file folder with a question mark in it mean when the computer won't start?

    What does a file folder with a question mark in it mean when the computer won't start?

    There are four general causes of this issue:
    1. The computer's PRAM no longer contains a valid startup disk setting when there aren't any problems with the disk itself. This can be checked for by pressing the Option key and seeing if the drive appears.
    2. The internal drive's directory structure has become damaged. This requires usage of an alternate bootable system to perform the repair.
    3. Critical system files have been deleted. This requires usage of an alternate bootable system to reinstall them.
    4. The internal drive has died or become unplugged. This is the most likely case if the computer took a sharp impact or there are unusual sounds coming from the hard drive's location.
    (68976)

  • HT4796 I am getting the message "WindowsMigrationAssistantSetup.exe is not a valid Win32 application" when I try to install Migration Assistant on my PC running XP SP3

    I am getting the message "WindowsMigrationAssistantSetup.exe is not a valid Win32 application" when I try to install Migration Assistant on my PC running XP SP3

    That's a Windows PC issue. What is the Mac OS X Lion issue? In other words what are you posting in the Lion forums about?

  • My mac wont turn on. It is charging and the on light is on when the computer is shut but once I open it the light turns off and the screen is black.  I turn it off and then on again and the start up noise goes but it is still black - Help!?

    My mac wont turn on. It is charging and the on light is on when the computer is shut but once I open it the light turns off and the screen is black.  I turn it off and then on again and the start up noise goes but it is still black - Help!?

    Claire, please post your machine specs as requested. There are some variants of the MBP with specific hardware issues. Example: the older "silver key" MBPs with 2.2Ghz and faster processors can have a defective video chipset that produces a black screen or distorted video. That problem is covered under an Apple program that will fix this at no cost to you if you computer is that model.
    Do "About this Mac" from your Apple menu and, in the resulting window, click the "More Info..." button. That launches System Profiler for you. The first screen looks like this:
    The second line, "Model Identifier" (or "Machine Model" if you are running OS10.4) precisely identifies your MBP variant. Post that, and include it in your equipment info in your profile for future posts. That means people don't have to ask, and you get faster help that is targeted to your specific model. Saves everybody a bunch of keystrokes and you get better advice.

  • How to speed up loading when the computer is turned on?

    The iMac I have is a Mac osx tiger. It used to be very fast on loading up all the applications. But now it take ages to load up when I turn it on, and it also takes a long time to open an application (especially Numbers, iPhotos, iTunes). What are the causes of this problem? And please advice on how to solve it. Thanks.

    Can you tell us what kind of iMac? They cover many years and generations with very different capabilities.
    A common issue:
    [Problems from insufficient RAM and free hard disk space|http://www.thexlab.com/faqs/lackofram.html]
    You might try with a bit of general maintenance/ checking:
    Boot from the installer disk, select language if applicable, choose utilities, run Disk Utility and verify (and repair if necessary) the drive. You can verify a drive from DU on your main drive while booted but I have found this can result in incorrect reporting of errors. To repair your drive you have to run it from a drive other than the boot drive anyway.
    Next, boot from your drive in [Safe Mode|http://docs.info.apple.com/article.html?artnum=107393] and repair permissions. You can repair permissions while booted from the installer disc but this uses the permissions configuration on the installer disc which may be out of date if you have run any updates on your computer. Booting your computer to Safe Mode restricts the number of things running on your computer while permissions are being run and does a bit of spring cleaning at the same time.
    [Resolve startup issues and perform disk maintenance with Disk Utility and fsck|http://docs.info.apple.com/article.html?artnum=106214]
    [Using Disk Utility in Mac OS X 10.4.3 or later|http://docs.info.apple.com/article.html?artnum=302672]
    [Disk Utility's Repair Disk Permissions|http://docs.info.apple.com/article.html?artnum=25751]
    From BDaqua (couldn't have said it better):
    "Try Disk Utility
    1. Insert the Mac OS X Install disc that came with your computer (Edit: Do not use this disc if it is not the same general version as what you have currently on your computer, e.g. use a Tiger disc for a Tiger drive, not a Panther disc), then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu. (In Mac OS X 10.4 or later, you must select your language first.)
    Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.
    3. Click the First Aid tab.
    4. Click the disclosure triangle to the left of the hard drive icon to display the names of your hard disk volumes and partitions.
    5. Select your Mac OS X volume.
    6. Click Repair. Disk Utility checks and repairs the disk.
    Then Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes."

Maybe you are looking for