Script for adding a login item for all accounts in the system

Hi,
Thanks for reading this query. I am new to the mac environment. I have developed a java application and created an installer of this application for MAC system.I want to run this application on starting the system. So I have written an apple script for adding this application in login items and this script will run immediately after completing installation process. And the entire process is fine. But the problem is, the application is added to login items of only the user who installed the application. But I want to get available the application in the login list of all accounts created in the system. How can I achieve this? Once more thanks in advance. I am attaching my script below:
+*tell application "System Events"*+
+* make login item at end with properties {path:"/Applications/MyApplication.app", hidden:true}*+
+*end tell*+

Hi,
Try to use tables RSOSFIELDMAP, RSDSSEGFD and RSTRAN
Hope it helps
bhaskar

Similar Messages

  • Why is it when I select my personal preferences/user/login items, that when i select the check box for items to NOT pop up on my dock when i restart and start my macbook air 11 inch that they still continue to?

    why is it that every time i start up my macbook air and when i restart it, that the new office with word and those three other apps constantly pop up? even though i went to personal preferences/users/login items, and selected the box that clearly says "items to NOT be brought up when logging in" ?

    If you don't want to start Office automatically when your Mac starts, see > http://answers.microsoft.com/en-us/mac/forum/macoffice2011-macword/how-do-i-prev ent-microsoft-office-2011-word-from/dd5b8b17-8397-4e7c-b635-79b9c976c4ab?msgId=f 00ac42a-e4fe-43aa-83d7-16ccd35a0d8a
    Also, on System Preferences > Users & Groups > Login Items, select all items related to Office and press - button to delete them

  • Is there a way to tell when an app was added to login items?

    Is there a way to tell the exact date when an app was added to login items? (eg. through terminal or console?).
    TIA

    No. Login items are created when you add an app through
     > System Prefs > Users & Groups | Login Items
    and is a list specifically used for running and app on login to a particular users account (not boot in general). At least AFAIK, this has nothing to do with installing the app to the system.
    I'm writing a bash diagnostic script which needs to call this info.

  • I am having a lot of trouble downloading itunes.My latest error message is that MediaToolbox.dll is missing. I have been trying to fix this for three days now .And it all started with the last update .Can anyone help?

    I am having a lot of trouble downloading itunes.My latest error message is that MediaToolbox.dll is missing. I have been trying to fix this for three days now .And it all started with the last update .Can anyone help?

    Taken at face value, you're having trouble with an Apple Application Support program file there. (Apple Application Support is where single copies of program files used by multiple different Apple programs are kept.)
    Let's try something relatively simple first. Restart the PC. If you're using Vista or 7, now head into your Uninstall a program control panel, select "Apple Application Support" and then click "Repair". If you're using XP, head into your Add or Remove Programs control panel, select "Apple Application Support", click "Change" and then click "Repair".
    If no joy after that, try the more rigorous uninstall/reinstall procedure from the following post. (If you've got XP, although the procedure is for Vista and 7, just read "Computer" as "My Computer", read "Uninstall a program control panel" as "Add or Remove programs control panel" and assume the system is 32-bit, and you'll be doing the right things.)
    Re: I recently updated to vista service pack 2 and I updated to itunes 10.2.1 and ever

  • [svn:fx-trunk] 5067: In preparation for adding ASDoc version tags for Flex, remove old tags from AIR files

    Revision: 5067
    Author: [email protected]
    Date: 2009-02-25 08:21:22 -0800 (Wed, 25 Feb 2009)
    Log Message:
    In preparation for adding ASDoc version tags for Flex, remove old tags from AIR files
    QE Notes: None
    Doc Notes: None
    Bugs: -
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemComboBox.as
    flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemDataGrid.as
    flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemEnumerationMode .as
    flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemHistoryButton.a s
    flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemList.as
    flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemSizeDisplayMode .as
    flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemTree.as
    flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FlexNativeMenu.as
    flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/HTML.as
    flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/FlexHTMLLoader.as
    flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/IWindow.as
    flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as
    flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as
    flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/windowClasses/StatusBar.as
    flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/windowClasses/TitleBar.as
    flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/AIREvent.as
    flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FileEvent.as
    flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FlexNativeMenuEvent.as
    flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FlexNativeWindowBoundsEvent .as
    flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/WindowExistenceEvent.as
    flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as
    flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as
    flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/ApplicationTitleBarBack groundSkin.as
    flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/StatusBarBackgroundSkin .as
    flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowBackground.as
    flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowCloseButtonSkin.a s
    flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowMaximizeButtonSki n.as
    flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowMinimizeButtonSki n.as
    flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowRestoreButtonSkin .as
    flex/sdk/trunk/frameworks/projects/airframework/src/mx/utils/DirectoryEnumeration.as
    flex/sdk/trunk/frameworks/projects/airframework/src/mx/utils/DirectoryEnumerationMode.as

    I'm also having this problem. I'm using Flash Builder 4.6, AIR 3.4 and I've made a DLL (e.g. ExtensionDll.dll) which needs to call functions in another DLL (e.g. DllUsedByExtensionDll.dll) . I've made sure my ANE is working with the ExtensionDll.dll already, so there are no issues with my actionscript code or my ANE packaging or my DLL compilation. However, once I start calling functions from the other DLL, it starts throwing me Error #3500. Even if I call this function (e.g. abc()) in ExtensionDll.dll, but I never actually use the function from actionscript, and I call another function (e.g. def()) from actionscript, the Error #3500 still appears, so it does not seem to depened on the whether the code is used or not.
    It's similar to this problem.
    http://stackoverflow.com/questions/9823504/how-to-use-external-dll-in-air-native-extension
    Does anyone have a solution or at least a way to debug this?

  • Login item on managed account

    Hi all -
    On our iMac running leopard, we'd like the ability to keep a program (VOIP phone program) running all the time regardless of which user is logged in. I figured out how to add the item to the Login Items for the Admin account (me), but there is no option to do the same for our daughter's login (a managed account). I tried accessing it through Parental Controls and even changin her account to Standard, but no luck.
    I've scoured the forum and the web to no avail...any solutions out there?

    Nate Hines wrote:
    Hi all -
    On our iMac running leopard, we'd like the ability to keep a program (VOIP phone program) running all the time regardless of which user is logged in. I figured out how to add the item to the Login Items for the Admin account (me), but there is no option to do the same for our daughter's login (a managed account).
    what do you mean? you add programs to login items in the same way on all accounts, including parental controlled accounts. log into that account and start system preferences. go to accounts->login items and add whatever you need to add there.
    I tried accessing it through Parental Controls and even changin her account to Standard, but no luck.
    I've scoured the forum and the web to no avail...any solutions out there?

  • TS4002 when I was assigned my ".me accounts.... I used the name of the company that I worked for. Then I received a iCloud account.  The problem is I want to change the two original names but can't because they're greyed out.  Is there anything I can do?

    When I was assigned my ".me accounts I used the name of the company that I worked for. Then I received a iCloud account.  The problem is I want to change the two original names but can't because they're greyed out.  Is there anything I can do?
    Thanks in advance,
    Majormidi

    http://discussions.apple.com/thread.jspa?messageID=3366422
    Odd, the link works for me.
    -mj
    [email protected]

  • Can Anyone provide me with the sound card specs for a 2GHz MacBook Intel Core 2 Duo? The system profiler lists the audio card as Intel High Definition Audio: audiocode 63

    Can Anyone provide me with the sound card specs for a 2GHz MacBook Intel Core 2 Duo? The system profiler lists the audio card as Intel High Definition Audio: audiocode 63

    ok thankx!  but i must to know the output impendatie of my  audio card= intel high definition audio? can somebody help me
    this is my mac book
    http://www.everymac.com/systems/apple/macbook/specs/macbook-core-2-duo-2.0-alumi num-13-late-2008-unibody-specs.html

  • Remove login item from my accounts

    I had Mac Protector installed on my computer without my knowledge.  I have gotten rid of it from my applications, but I can't figure out how to get it off my login items on my accounts.  Please help!

    Go to system preferences > accounts > login items > unlock the padlock > uncheck Mac Protector then click it and press the minus button.

  • How to make every account in the system login automatically?

    How to make every account in the system login automatically when Mac OS X startup?
    Thanks!

    I can see one way to do it. You'll need to install a script in each user account, and have it set as a login item for each user. Let's imagine you have three user accounts. Each user in Mac OS X has a UID number. Normally your first user has the UID of 501, the second one will be 502 and so on...
    You can determine the UID by running the following AppleScript while logged in on each user:
    do shell script ("ID")
    This'll return a long block of text, but right at the start you'll see the UID number. Let's assume your three users have the UIDs 501, 502 and 503. We begin with 501.
    Create the following script and save it as an application while logged in as 501. Note that the password you're entering is the password for UID 502. Also note that the forum system is creating line breaks where there shouldn't be any. The long "do shell script" line should be one line.
    delay 5 --This delay allows time for login to complete, but it may not be necessary.
    try
    do shell script "/System/Library/CoreServices/Menu\\ Extras/User.menu/Contents/Resources/CGSession -switchToUserID 502"
    delay 5 --This delay could be shorter or longer, depending on how fast your machine is.
    tell application "System Events"
    keystroke "password for 502" --the password for UID 502
    keystroke return
    delay 1
    end tell
    on error
    display dialog "Unable to switch user."
    end try
    Open System Preferences, go to Accounts, click "login items" and drag your script (saved as an application) to the login items window.
    You basically repeat this process for each user account, modifying the script so it switches to the next user.
    This isn't ideal, because your passwords will be stored in the scripts, and each user could open the scripts and learn the passwords of the other users on that machine.
    I picked some of this up from a discussion over at the Macworld forums:
    http://hints.macworld.com/article.php?story=20031102031045417
    Message was edited by: The Preacher
    Message was edited by: The Preacher
    Message was edited by: The Preacher

  • If I update to ML do all accounts on the mac get the update

    I have multiple accounts on a Pro with RD. I'm also eligible for the free update to ML. I'm just wondering if the update is applied to all accounts on the device.
    I've never updated my MacBook and the whole updating a mac, windows, iPhones etc but never a mac. I'm assuming it does update all profiles despite being purchased through one apple ID, hope I'm righ?!?!?!
    Many thanks in advance

    Thanks Ducman
    Are all apps purchased through app store shared between user accounts? Or is this limited to OS?

  • TS2446 A email account that was used is now not in use and songs that were purchased and added are bound to this old account from the same computer how do I the purchaser of these songs reclaim the authorization to play and use in my new account

    A email account that was used is now not in use and songs that were purchased and added are bound to this old account from the same computer how do I the purchaser of these songs reclaim the authorization to play and use in my new account. even though account name may have been changed.

    Just authorize the computer and retreive them.
    Go here -> https://iforgot.apple.com/cgi-bin/WebObjects/DSiForgot.woa/wa/iforgot .
    FYI: you should have simply updated the AppleID with new info and continued to use it instead of creating a new one.

  • Deleted all accounts in the Sharing pane (sys preference)

    Deleted all accounts in the Sharing (System preference) once I did that I was still logged but couldnt open apps...close apps...even log out. I had to do a hard reboot and now the computer will not boot up. I get to the black and white screen but it never proceeds from there. I inserted the Leopard DVD but it doesn't boot up. I have no idea what I've done or how to resolve this. HELP!
    Joe

    You destroyed your machine's ability to boot up, since there are no user accounts. Shut down the machine with the install disk inserted, restart holding down the OPTION key, select the install disk icon, and click on the arrow underneath it. That should allow you to boot with the install disk. Whether or not you can do anything to fix the problem, I can't say. If you do an Archive & Install, there's no user data to save. If you do an Erase & Install, you have to wipe (erase) the hosed OS. Unless you have a bootable backup/clone of a good OS, you just might be out of luck.

  • FM or BAPI for adding/removing maintenance items(Tcode IP02).

    Hello All,
    I need to change Maintenance plan by adding/removing maintenance items(Tcode IP02). Please let me know availaible FM or BAPI for the same.
    Regards,
    Vimal

    Hi,
    use the following steps to find a BAPI for any transaction
    1.Open transaction SE24.
    2.Now open the object CL_EXITHANDLER in display mode.
    3.Go to the method tab and double click on the method GET_INSTANCE.
    4.Put a break point on cl_exithandler=>get_class_name_by_interface.
    5.Now execute the transaction you want to find BAPI for, it will take you to the above method.
    6.Write EXIT_HANDLER in fieldnames and hit enter, it will tell you the BAPI used for your transaction.
    7.Hit F8 and it will tell you all the BAPIu2019s for your transaction.
    some of the FM's are
    PM_MHIS_UPDATE
    MEASUREM_POINT_UPD_PYEAR
    Regards,
    Manish

  • Unable to access Login Items for Accounts in System Preferences

    I've created an image for computers at my school. When I go into System Preferences>Accounts, and authenticate, I am unable to access the Login Items tab. The tab isn't grayed out or anything. It's just that when I click on it, nothing happens. It stays on the Password tab. The only way I can get out of it is to quit System Preferences. Any ideas?

    If you are connecting to a OS X Server, make sure that you're not managing Login Items (Click on Preferences in WorkGroup Manager, then Login, then the Items tab). I had the same problem and setting that preference to Never solved it for me.

Maybe you are looking for

  • Pages 'Word' documents can no longer be opened in LibreOffice

    I used to be able to open documents created and  saved as 'Word' documents in Pages with LibreOffice Writer. This is no longer possible. I can still open documents created with Microsoft office and saved with the .doc extension in LibreOffice Writer.

  • How do i pass a url with query string using the jsp:forward tag

    This snippet of code gives a 403 error <jsp:forward page="testpage.jsp?test=1" /> How do i rectify it?

  • Inbound edi

    hi, can any one say me step by step process for inbound edi.

  • Remove the decimals value

    Dear All,    Any Idea to remove the  decimals value  from the text ?   my parameter declare as Character type.  eg :     i want from 10000.000 become 10000 thanks

  • Wohl's Final Cut Tutorial Videos

    I just watched the interview with Michael Wohl from this thread: http://discussions.apple.com/thread.jspa?messageID=3559021&#3559021 Pretty interesting, actually ... I didn't know that Final Cut was originally for Windows?!? Wohl seems to know his st