When I run script from terminal it is working fine but it is not working from installer

Here is my script look like.
#! /bin/sh
defaults write com.apple.LaunchServices LSHandlers -array '{ LSHandlerContentType = "xxxx"; LSHandlerRoleAll = "com.xxx.xxx"; }';
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchS ervices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user;
please help

my app to be default for the that document type forcefully.
This is requirement of my client. I want same effect as of "clicking change all button by selecting default application" when we right click the file with that extension. 
Please help if you know how to do it??

Similar Messages

  • Error when running script from OTM

    Hi team,
    Customer is trying to run script from OTM but is getting a "JWG file does not exist" error. I found the following metalink note and the customer has verified that the repositories are defined with exactly the same names & paths in OTM & Openscript.
    Scripts Failing To Play Back From OATS Test Manager (OTM) (Doc ID 1587941.1)
    I've also checked the following post in the forums but this doesn't apply to the customer because both the OTM & agent are on Windows:
    https://forums.oracle.com/message/10707963
    Appreciate any pointers
    Thanks,
    Krishna

    Hi Krishna
    Is the agent running as a windows service or started from an interactive batch?
    What kind of script is that? Web, Forms, Siebel, other?
    Are they different repositories or the same? If different, how do you copy scripts from one to the other one?
    Cheers
    JB

  • Script Alert "You should only run scripts from a trusted source."

    I created a small javascript which opens Photoshop and resizes some images.
    I want to be able to double-click the .JSX file from Windows Explorer, and have Photoshop execute the script. Likewise, I want to be able to run the .JSX file from the command line.
    The script runs perfectly. However, the problem is that I don't want any user interaction. I want to be able to run the script from the command line without the user having to click anything. What happens now when I try to run the file from Windows Explorer of the command line is, I get a Script Alert with the following text:
    You are about to run a script in Adobe Photoshop CS3. You should only run scripts from a trusted source. Do you want to run the script? Yes/No
    Is there any possible way to bypass this message or to answer in the affirmative?
    Thanks,
    Jamie L.

    Hi... Sorry to revive such an old thread,
        Does anyone know the "trusted source" folder for MAC CS4.
    EDIT!
    My bad.  "The /users/<user_name>/documents/Adobe Scripts" folder is working for this purpose for me.  I needed a path to it and forgot that the ~ resolves to the current user.  Sweet.
    -Bill

  • HT1222 hi i have a apple imac 27 2009 and i have purchased mountain lion but near the end it says An error occurred while running scripts from the package "mzps6175750011235388779.pkg"

    hi i have a apple imac 27 2009 and i have purchased mountain lion but near the end it says An error occurred while running scripts from the package “mzps6175750011235388779.pkg”
    can you please advise me what should i do to fix this

    Some ideas.
    https://discussions.apple.com/message/20034600#20034600

  • Used a template to create form. when I run it from a page, the template is not shown

    I have created a form based on a template. When I run it from the applications page I can see the template. I then added it as an application component item with a folder in a content area. I have then published this folder as a portlet in a page. When I the form from the portlet within that page, it opens up in a new window but there is no template.
    How do I get the template to show when I run it from the portlet ?

    It is true that the template is not shown when the form is run as a portlet. But, with a small amount of coding in the additional pl/sql section, you can display the template.
    Steps :-
    1> Edit the form and go to the additional pl/sql section.
    2> Put the following code in the "...before displaying the page" area
    declare
    l_mid integer;
    l_title varchar2(32767);
    l_template varchar2(200);
    begin
    l_mid := p_session.get_module().id;
    l_title := p_session.get_module().title;
    l_template := p_session.get_module().template;
    <portal_schema>.wwv_headings.show_header
    p_template => l_template,
    p_heading => l_title,
    p_help_link => <portal_schema>.wwctx_api.get_proc_path('wwa_app_module.help')
    || '?p_module_id='||l_mid
    end;
    3> Put the following code in the "...after displaying the page" area
    declare
    l_template varchar2(200);
    begin
    l_template := p_session.get_module().template;
    <portal_schema>.wwv_headings.show_footer
    p_template => l_template
    end;
    Note: replace <portal_schema> with appropriate your portal schema .

  • Problems downloading and installing OS X Yosemite An error occurred while running scripts from the package

    Hi! I have problems downloading and installing OS X Yosemite.
    While downloading this message pops up:
    An error occurred while running scripts from the package \U201cwct8079783343594854923.pkg\U201d.
    and in /var/log/install.log i can see:
    MacBook-Pro installd[1086]: PackageKit: Install Failed: PKG: pre-install scripts for "com.apple.pkg.InstallMacOSX"\nError Domain=PKInstallErrorDomain Code=112 UserInfo=0x100193c00 "An error occurred while running scripts from the package “wct8079783343594854923.pkg”." {\n    NSFilePath = preinstall;\n    NSLocalizedDescription = "An error occurred while running scripts from the package \U201cwct8079783343594854923.pkg\U201d.";\n    NSURL = "#InstallMacOSX.pkg -- file://localhost/Users/username/Library/Application%20Support/AppStore/91504108 2/wct8079783343594854923.pkg#Distribution";\n    PKInstallPackageIdentifier = "com.apple.pkg.InstallMacOSX";\n}
    does anyone have an idea about this?
    thank you very much

    Mucked up installation. If the installer app is still in /Applications, delete it and start over.
    27" i7 iMac (Mid 2011) refurb, OS X Yo (10.10.2), Mavs, ML & SL, G4 450 MP w/10.5 & 9.2.2

  • Cannot prevent ExtendScript debugging while running scripts from After Effects

    Hi,
    I am facing this issue while running scripts from within After Effects. Whenever I am trying to run a script in After Effects, the script opens up in ESTK in the debug mode. The execution waits at the starting point of the script as if there is breakpoint even though there is none. I am not sure whether what I am missing, whether some debug flag needs to be reset etc. I am using After Effects CC on Windows 7 OS. Any help would be highly appreciated.
    Thanks.

    I tried running the script after removing all $.writeln() statements, but unfortunately that does not resolve the problem. For testing the issue, I am trying with the simple script given below :
    var window = new Window ("palette", "My Window", undefined);
    var panel = window.add("panel", undefined, "Panel");
    var text = panel.add("statictext", undefined, "Testing AE");
    window.show();
    But executing even this one from AE opens up ESTK. I am absolutely stuck with this odd behaviour .

  • An error occurred while running scripts from the package "ztb343812063996219254.pkg

    i tried to upgrade my os lion 10.7.5 to os x yosemite on my macbook pro and in the middele of downloading I'm getting this notice: an error occurred while running scripts from the package "ztb343812063996219254.pkg
    help me please…..
    i think i have problem with the app store cause sometimes I'm getting more errors like error no 13 or 100
    what should i do?

  • Error using jar, but the programme works right when i run it from any IDE

    I have a programme with 25 .java archives. Is a GUI with a main panel and a JToolBar. When i run ir from Eclipse iDE, NetBeans or in the Linux shell it works rigth. Then i try to make a .jar. In the process i haven't any error, and when the application starts either. But when i click in some of the JMenuItems, they don't work. The function of this Items are change the main panel. It's like some .class of event listeners aren't included, but i check the .jar and has the same .class archives than the compiled project.
    What can be problem?? It's very urgent, please.
    Regards

    I'm so sorry for annoying you, i'm a poor stupid
    student that don't have money to hire an expert, so i
    try to learn and find help everywhere. But, don't
    worry, i resolve my problem by myself.what errors are you getting. It would be helpful if you could post the errors or some stack traces that you are getting

  • An error occurred while running scripts from the package "mzm,stuhjljp.pkg".

    I hope someone can help, I have now tried downloading Lion OSx 4 times and I keep getting this message: An error occurred while running scripts from the package "mzm,stuhjljp.pkg".
    I go back to the app store and it kindly tells me it's installed. It's not quite simply it is nowhere to be found.
    Nice one Apple for moving away from those reliable discs and causing pain, wasted productivity and a **** of a lot of frustration. $29.99 to annnoy the **** out of me, thanks.
    Anyone have a solution that may be of assistance.

    Mj, I can't offer much help but you may be able to use this method to "find" Lion OS X in the App Store again.
    Hold down the "option" key while clicking on the App Store icon.  Keep holding down the option key, then click on the "Purchased" tab at the top of the page. 
    With any luck the button to the right of Lion OS X will now say "install."
    I'm having a similar problem reinstalling Lion, so don't be surprised if you try to reinstall and get the same error.
    Good luck,
    Contender

  • "An error occurred while running scripts from the package "DeveloperTools.pkg"

    I'm trying install my xcode 4.2 and check log and this where there is problem
    "An error occurred while running scripts from the package “DeveloperTools.pkg”

    II found the answer elsewhere. I logged in from a diffent admin acount and the install went fine.

  • HP 34401A-When I run the Read Meas.vi, it has error if I do not turn off the data storage

    When I run the Read Meas.vi, it has error if I do not turn off the data storage. The same thing happen when I run the App. Example. vi. Anyone knows how to solve this problem? Thanks alot.
    KL

    LoganS wrote:
    Hi KL,
    The Read Meas.vi is one of the subvi's in the App. Example.vi, so this problem is most likely the same problem in each case. From the help for Read Meas.vi:
    Data Storage instructs the device to store the data to be sent to either the internal or external buffer. If TRUE (default), the VI stores data in the on mode. If FALSE, the VI does not retain data in the off mode. Use the off mode only with the average min/max operation when you do not need to retrieve data. You cannot configure the meter for external buffering in the off mode.
    So the question is, are you trying to retrieve any data? If so, then as indicated in the above paragraph, you cannot retrieve data and have the data storage turned off. Good luck!
    Logan S.
    Yes, I need to retrieve data. So due to that problem, I cannot really get any data. I am not sure is that problem is due to the USB GPIB or not. But once I click on the click arrow, everying goes fine from initialise, measurment... once it comes to Read measurment, it has error (say somthing like: VISA Wait on Event for RQS.vi->HP34401A Read Meas.vi->Untitled 1) I have no idea like what it shows up.
    KL

  • Having troubles running iTunes! I downloaded iTunes just fine, but when I try to open it, it tells me iTunes is in a locked disk or I dont have permissions to write to this folder. Please help!

    Having troubles running iTunes! I downloaded iTunes just fine, but when I try to open it, it tells me iTunes is in a locked disk or I dont have permissions to write to this folder. Please help! I purchased an iPod for my son and wanted to put music on it.

    Hello there KRerssig,
    I was looking through our resources and found an article with information regarding that error message. The article is called iTunes for Windows XP: "Disk is locked" or "iTunes folder cannot be found" when installing or opening iTunes found here: http://support.apple.com/kb/HT1866.
    Here is the text but the article contains images for a visual reference:
    Verify the location of your Windows XP My Music folder. The default location for this folder is
    C:\Documents and Settings\username\My Documents\My Music
    If you do not have this folder at the default location and have not moved it to another location, consider creating one inside your My Documents folder.
    Download and install Tweak UI from the Microsoft PowerToys website athttp://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx
    Note: This utility is for Windows XP only. Please review the system requirements before installing.
    Once you have installed Tweak UI, open it from the Start menu.
    In the column on the left, click on the plus symbol next to My Computer and select Special Folders.
    In the right pane under Special Folders, choose My Music from the Folder pop-up menu.
    Click the Change Location button. You may see a warning message appear with precautions for changing this setting; after reviewing the message, click Yes.
    In the resulting window, browse for the My Music folder as described in step 1, and click OK.
    Reinstall or open iTunes.
    If these steps do not resolve the issue, the settings for the current user may be corrupted, which could cause iTunes not to install or open. You may have to install and open iTunes in a different Windows user account.
    All the best,
    Sterling

  • HT3199 I have an apple TV 1st generation - it froze downloading a trailer and had to be unplugged.  Since then I cannot access the apple tv menu.  When I run diagnostics it says it is operating properly but will not factory restore.  What can I try?

    have an apple TV 1st generation - it froze downloading a trailer and had to be unplugged.  Since then I cannot access the apple tv menu.  When I run diagnostics it says it is operating properly but will not factory restore.  What can I try?

    Apologies, I was looking at the wrong schematic for the Apple TV 1. There isn't a button. So lets try this instead...
    Remove the power cord and wait 20 seconds.
    Plug it back in and let it boot (Give it 10 minutes, it's being tempremental)
    Try and navigate to the the advanced menu and do a factory restore
    If that doesn't work then if you are using the white remote hold down the menu button for six seconds and release this should bring up a hidden menu which will allow you to access the advanced configuration settings.
    Again, if this fails there isn't much to do than tap it with a hammer to see if that fixes it (hard to believe how many times that actually works. (No responsibility taken if it breaks!, but at least you'd have a good reason to buy Apple TV 3)

  • When I switch on, the Apple and progress icons appear but it does not start.

    When I switch on, the Apple and progress icons appear but it does not start. I tried resetting PRAM, Utilities, everything. It says the system is OK. I even reinstalled Tiger, but nothing has changed.

    Given that you were able to reinstall the OS, you must be able to boot from the install disc.
    Have you run Apple Hardware Test?
    Tried running on just one RAM module, then switch it to other slot, then repeat with other module?
    Safe Boot?
    Checked SMART status?
    Run Repair Disk:Boot from install disc (insert disc > restart > immediately hold down ckey and keep holding it until you see “Preparing Installation”) > at firstscreen select the language and click Continue > click on the Utilities Menuin the menu bar > open Disk Utility > select your HD in the panel on theleft side> click Repair Disk at bottom of main window. Run this at leasttwice, and keep running it until it says “appears ok” twice in a row. If thatdoesn’t happen, you may need a stronger utility such as DiskWarrior or if thedirectory is damaged beyond repair, you may need to reinstall the OS, or youmay have a damaged HD (repair utilities can only repair the directorystructure, not the HD itself). When this is finished, quit Disk Utility, quitthe installer, and restart. Once booted normally, go to Applications >Utilities > Disk Utility and run Repair Permissions.

Maybe you are looking for

  • ISE Problem

    Hi Experts we have new ISE servers at our network and it work good . but lately i faced the below problem : the ISE integrated to get the authentication from the microsoft active directory which depend on the windows login username / password , and t

  • Security when authenticating after sleep

    I hope someone can tell me if this is an issue or not. In our house, we have 2 admin accounts on an iMac running 10.5.2 (I'll call the users "1" and "2"). Fast user switching is enabled. On waking from sleep, if user 1 is logged in, user 2 can get pa

  • TS1702 I upgrade and the passbook feature is not working ? How to get it to work

    How to make password work. Upgrade and it is not working when I try to open the passbook states that can not open App Store

  • Is the newer (the one that comes standard with bb bold 9790) operating system available to all BB bold 9700?

    I've had a replacement BB Bold 9700 for a while now and only just found this forum, anyway at the moment it has the standard 9700 software (the one where it is just the five icons at the bottom of the home screen, and then you can press the bb logo a

  • Po release not possible

    [Re: po release is not posible].I have tried this link but didnt work anything.Plz Suggest.I tried deactivating exit .tried all release tables.but didnt work cl24n checked throght all end.