Automator Script Does Not Stop

Mountain Lion on MacBook Air
This Automator App Script (enablelocal.app)
on run {input, parameters}
          do shell script "sudo tmutil enablelocal /" password "xxxx" with administrator privileges
          return input
end run
runs and changes the local backup setting, closes terminal, but the workflow does not stop (the gear keeps rotating in the menu bar until I manually stop it).
What else do I need to have the workflow stop?
Thanks

sudo never belongs in a do shell script command.
Consider what happens when you run sudo at the command line - the chances are it prompts you for the admin password. do shell script specifically prevents user interaction, so sudo asks for a password, but there's no way for you to see this, or enter a password to continue. That's what's happening here - your sudo is waiting for a password it can never get.
'... with administrator privileges' is the right way to go. Because this isn't part of the command you're passing to 'do shell script, AppleScript can elevate the privileges (including prompting for username and password) befor invoking the shell command. Problem solved.

Similar Messages

  • HELP NEEDED. Plugin container stopped working / Script does not respond

    Hi!
    I am aware that there are numerous articles about this problem, but unfortunately none of them solves my problem.
    Very frequently, at least once a day (usually from 3 to even 7 times a day) my Mozilla Firefox freezes and I am forced to restart it. It typically occurs when I try to open a page with some interactive content in it (youtube, some fancy flash pages, even gmail document preview). When I try to close it, Windows pops up a message saying that "Firefox stopped working" and terminates the application itself, and then another window pops up, saying "Plugin Container for Firefox stopped working". It's usually either that, but sometimes Mozilla also shuts itself without any warning and the same message appears.
    As for "script does not respond", it does happen as well, although way more seldom. Usually it happens on the pages with lots of images. The whole browser then freezes for couple of seconds, then it pops up a window saying that the script does not respond and asks whether I want to force it to continue or not. It doesn't make any difference which option I choose because usually the browser crashes anyway.
    I am using version 34 and I made sure all my plugins and addons are up to date. I also disabled hardware acceleration and tried to reinstall whole flash thing. I wonder whether it's the fault of one of my addons, but I admit I am not too eager to try and disable them all and then test it one by one because it would take up way too much time.
    Apart from that, none of the previous solutions seem to help, and the problem really gets on my nerves because numerous times I lost a huge block of text I was writing. Now I learned to copy everything I write couple of times :/
    Maybe the crash reports will help. I'll link them from the newest to the oldest (for some weird reason they are 3 crash reports from today, yesterday and 3 days ago - weird, because the browser has shut itself today at least twice, not to mention previous days):
    https://crash-stats.mozilla.com/report/index/ba7f5087-3d7d-4b2c-b9b1-04e6d2150105
    https://crash-stats.mozilla.com/report/index/72eaf792-5f06-445b-806c-cd7922150104
    https://crash-stats.mozilla.com/report/index/c3f81ff8-df10-45a6-8400-1c5912150103
    I'll be glad for any help because, honestly, I can't stand it anymore. No reinstalling of Firefox or restoring settings to default have helped me yet.

    Hmm, that's pretty bad. Often if Windows is stepping in with the crash report, then the issue is with a driver incompatibility, most commonly a display driver.
    Here are a couple things to try:
    (1) Disable Firefox from using hardware acceleration
    This is the traditional workaround. You can use:
    "3-bar" menu button (or Tools menu) > Options > Advanced
    On the "General" mini-tab, uncheck the box for "Use hardware acceleration when available"
    That takes effect the next time you exit and start Firefox up again, which the way you describe it, might be quite soon.
    (2) Disable the Flash player plugin from using hardware acceleration
    This is a separate setting. See this support article from Adobe: http://helpx.adobe.com/flash-player/kb/video-playback-issues.html#main_Solve_video_playback_issues
    (3) Disable the Flash plugin's protected mode feature
    Protected mode has security benefits, but is not compatible with all systems for some reason. It can stall scripts on some systems, for example. You can disable the feature by creating or editing a settings file. The following pages/posts provide different approaches:
    * Adobe support article under the heading "Last Resort": [http://forums.adobe.com/message/4468493#TemporaryWorkaround Adobe Forums: How do I troubleshoot Flash Player's protected mode for Firefox?]
    * Manual steps: https://support.mozilla.org/questions/968190?page=5#answer-509209
    * Batch file to automate the manual steps: https://support.mozilla.org/questions/982093#answer-518078 (alternate version of Carm's batch file with a few changes by me: [https://onedrive.live.com/?cid=f7d304d92388737d&id=F7D304D92388737D!336&ithint=file,.bat&authkey=!AP2FXW2Y_3BXZyo])
    Any improvement?

  • I have a new Macbook pro, about 2 months old, and at times running video, the fans starts and does not stop. how do you get it to stop.

    I have a new Macbookbook, about 2 months old, and at times running video, the fans starts and does not stop. how do you get it to stop. Also i am thinking once the video is done  the fan should be slowing down and getting quiet on its own.

    Your fan(s) will run at high speed (i.e., loudly) while video is playing, and you can't get around that.
    If your fans are not slowing down within 2-4 minutes after CPU- and/or GPU-intensive usage ends, and the application that was showing the video is still running, Quit that application. (In fact, if you're accustomed to Windows, you may not realize that simply closing a Mac application's window does not quit the application. You still need to use the Quit command in the application-name menu. There will always be a bright dot beside or below the application icon in your Dock for each application that is open.) Quit the ones you aren't using, and see whether that allows the fans to slow down without restarting the machine. If that doesn't do the trick, reset the SMC:
    http://support.apple.com/kb/HT3964?viewlocale=en_US&locale=en_US

  • I have my Calendar app syncing with iCloud.  Every time I open it it says, "Moving Calendars to Server Account..."  It runs and runs and does not stop.  As a result, I cannot access my calendars.  Please help.

    I have my Calendar app syncing with iCloud.  Every time I open it it says, "Moving Calendars to Server Account..."  It runs and runs and does not stop.  As a result, I cannot access my calendars.  Please help.

    I have the same problem, I tried the solution of Dr Cox but that didn't work as he said go to system preference then mail, contacts etc. but I don't have that.  Can someone help?
    Elaine

  • HP Officejet Pro 8500A: Initial Checking Printer Procedure does not stop

    I have a big problem.
    My printer does not stop to run the "Checking Printer" procedure.
    It tells me: "Open the print-carriage access door, clear the jam, and then touch OK to continue.
    Unfortunately there is no paper inside.
    Pressing OK, the printer continues the procedure and it NEVER stops.
    Switching OFF and ON the power does not help.
    But if you try to print the Auto Test Report it works. The printer prints the report without any problem!!!
    PLEASE HELP ME
    Andrea

    Hi there andrea_lugano,
    This article should cover the issue you are experiencing. Give the steps outlined a shot and let us know if it helps.
    Best of Luck!
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • I needed to install a previously purchased CS6 versus on new computer. To do this, I had to download a version from CC. I will not be using CC. How do I activate Photoshop under my license so that it does not stop working when I am out of communication ra

    I needed to install a previously purchased CS6 versus on new computer. To do this, I had to download a version from CC. I will not be using CC. How do I activate Photoshop under my license so that it does not stop working when I am out of communication range a month from now?

    The CC version will not activate with your perpetual CS6 license. Download the version from here:
    http://helpx.adobe.com/x-productkb/policy-pricing/cs6-product-downloads.html
    Your number should work with this version.

  • Script does not get called

    Hi there, I am trying to setup a quad view on my stage by
    placing 4 sprites on the stage with the same 3D cast member. I then
    apply a behaviour script that initalizes the 4 sprites in their
    correct positions and sets up the 4 different camers as follows...
    topView
    perspView
    sideView
    frontView
    ... however, doing so, the script gets called only on the
    first sprite and the other 3 sprites do not react with the
    behaviour script. As a matter of fact, I also have a sendAllSprites
    command inside the behaviour script and it does not send the
    message to all of the sprites with that piticular behaviour script.
    Is the reason why the behaviour script does not work on the other 3
    sprites because I need a diferent 3d castmember for each
    sprite?

    Hello,
    You don't need to place 4 sprites of the same W3D cast member
    in the score.
    1- Place a single occurence (sprite) of the W3D cast member
    in the score
    2- Create 4 cameras either in your 3D package or by code
    using member.newCamera():
    topView
    perspView
    sideView
    frontView
    3- Set the rect of the four cameras so they correspond to
    each corner of the screen
    4- Use sprite.addCamera() in order to add the four cameras to
    the W3D sprite
    That's all you need.
    Best regards,
    Karl Sigiscar.
    http://www.chromelib.com

  • Unable to update when executed, table gets lock Execution does not stop Execution even for an hour

    Following is my Query unable to update when Executed table gets lock Execution does not stop even for an hour.
    update Employees 
          set Status = 'Close'
          where statusid IN (select statusid 
                                             from MyView 
                                              where DownloadedDate ='2014-07-27 00:00:00.000'
    here Employee contains 3,00,000 of records and Subquery return 1,50,000 Empid 
    i tried in various ways but not able to solve, statusid  column have no index on,  i tried using cursor but it does not work.
    plz let me know how to solve this Issue, THANKS IN ADVANCE.

    Hello,
    You should better post your question to a more related Forum, like Transact-SQL or SQL Server Database Engine; this Forum is for samples & community Projects.
    Have you checked the execution plan if indexes are used?
    You could update the data in chunks, e.g. 10.000 rows per execution. For this you have to add a TOP clause and a filter to update only those, who are not updated yet.
    update TOP (10000) Employees
    set Status = 'Close'
    where statusid IN
    (select statusid
    from MyView
    where DownloadedDate ='2014-07-27 00:00:00.000')
    AND Status <> 'Close'
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Unable to update, when executed table gets lock and Execution does not stop even for an hour.

    Following is my Query, which unables to update. When Executed, table gets lock and Execution does not stop even for an hour.
    update Employees 
          set Status = 'Close'
          where statusid IN (select statusid 
                                             from MyView 
                                              where DownloadedDate ='2014-07-27 00:00:00.000'
    here Employee contains 3,00,000 of records and Subquery return 1,50,000 Empid 
    i tried in various ways but not able to solve, statusid  column have no index on,  i tried using cursor but it does not work.
    plz let me know how to solve this Issue, Its very Important to get solve as all my further work depends on Updation
    , THANKS IN ADVANCE.

    See also your other thread with the same question:
    http://social.msdn.microsoft.com/Forums/en-US/80243625-fc3b-4ee1-bce1-4adcdbc16c14/unable-to-update-when-executed-table-gets-lock-execution-does-not-stop-execution-even-for-an-hour?forum=sqlserversamples
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Hi help unlock the phone happened after we installed a new programa we can not get the activation password and ID, I know and still does not stop the phone bought in Israel and what documents should be sent to confirm that my phone Please read through the

    hi help unlock the phone happened after we installed a new programa we can not get the activation password and ID, I know and still does not stop the phone bought in Israel and what documents should be sent to confirm that my phone Please read through the help

    What I am saying is ..........
    The iPhone HAS to be active making calls on the UK carrier network for the carrier to identify as "theirs" and therefore eligible for the Carrier to unlock
    The way to achieve this is to use a PAYG sim making and receiving calls to establish a customer relationship  with the Carrier and then follow the Carrier's process to unlock
    With a PAYG it usually means adding a specified (by the carrier ) amount  usually £15 /£20 depending on the carrier
    This is how O2 function and according to Gemma  this is how Vodafone work

  • If you unplug the headphones ipod does not stop the music. How do I fix this?

    If you unplug the headphones ipod does not stop the music. How do I fix this? При отключении наушников ipod не останавливает музыку. Как это исправить?

    What happens if you reset the Nano? To do this, press and hold both the Sleep/Wake and Volume down buttons together long enough for the Apple logo to appear.  Start playing another track, and then pull the headphones out?  Any change?
    I am going to try this out with my 6G Nano later on to see if this functionality does indeed exist on this model. Or perhaps somebody who comes along to this thread can offer an answer.
    B-rock

  • Synchronization does not stops

    Hi all
    After installing MI, MAM etc, during the Synchronization for the data (5000 measurement points), the data comes but the Synchronization does not stops or takes a very long time to stop. Confirmed about the data by tracking the memory and also by restartign the device once the memory is stable, the data exists.
    Similarly while creating measurement documents for 150 docuemtns syn works fine, but for 300 documents the data gets successfully posted but the sync does not stops unitl we manually restart the device.
    We use Symbol 9090 and program memory available is 2 to 3 MB.
    Is it a memory issue??  Did any one had come accross this problem??
    Thanks
    Raj

    Hi Raj
      Surprised that these recomendations doesnt work. Anyway i have one more recomendation which is related to TIME AGENT. If you are using any of the Agent feature, which is made available recently in MI then this could also result in an endless sync. The Time agent which is one of the several Agents, can never have a value TRUE for the History parameter. As for the possible solution,  please change the value of AGENT_HISTORY in the TIME_AGENT parameter set to FALSE and then assign this parameter set to a device configuration which inturn in assigned to a device.  Please test this new scenario with a fresh client installation and not with an already synced client. This should solve this endless problem.
    Or other way of testing this is In the client there is a file named <b><i>agents.properties</i></b> in the MI settings folder. Here there would an entry called TRACE_AGENT#AGENT_HISTORY=TRUE. Please set his value to FALSE. Let me know if this works.
    Best Regards
    Sivakumar

  • Script does not pick up values as intended

    Hi
    I have written a CALC routine where in i want to do the following:
    -If there is any input done for that rate in the month, the routine should do nothing
    - If there is no input in that rate account in the month, it should pick up the previous period data.
    But this IF condition does not work and I have not been able to understand why so.
    Can someone pl tell me what goes wrong in the below script?
    If i remove the IF command the script works (but if then overwrites any input made for the period)
    SUB Exch_Rate_Cf
    'carry forward of composite exchange rates for FA Opening Balances
    IF HS.GETrate("A#Exch_EquCap.I#[ICP None].C3#[NONE].C4#[NONE]") = "0" THEN
         IF HS.PERIOD.MEMBER = "JULY" THEN
    HS.EXP "A#Exch_EquCap.I#[ICP None].C3#[NONE].C4#[NONE] = A#Exch_EquCap.Y#Prior.P#Last.I#[ICP None].C3#[NONE].C4#[NONE]"
    ELSE
    HS.EXP "A#Exch_EquCap.I#[ICP None].C3#[NONE].C4#[NONE] = A#Exch_EquCap.P#Last.I#[ICP None].C3#[NONE].C4#[NONE]"
    END IF
    else
    END IF
    END SUB

    Hi
    I have tried both the approaches.
    "JUL' does not work as we have given JULY as the dimension member name
    The other approach also does not result in any result being calculated --- i think something is going wrong and the script does not go into the IF condition itself :(

  • Entering values in TableMaintenance,cursor does not stop at error record ?

    Hello,
    Very Good Morning!
    When creating new entries in Table Maintenance, Cursor does not stop at the error record. It display's an error where the error is. But, cursor will skip to the first field of the record.
    Ex : Sales Org, Mater, Sales Obj %, Frist arr date.
    Suppose these are the fields available and I want to create a new entry.
    When i enter incorrect value in Sales Obj %, it is displaying error message saying that i need to enter correct value. But the Cursor is skipping away to the first field Sales Org.
    PLease help what to do...I tried using set cursor. But, I am not sure how to excatly use it and it was not working. 
    Any help will be appreciated.....
    Thanks & Regards,
    Krishna Chaitanya

    Hello,
    This question is not answered.
    I want to close this question.

  • Setting geo.enabled to false does not stop websites from knowing location. Seems to be related to my proxy setting.....Any ideas on how to completely disable this?

    Setting geo.enabled to false does not stop websites from knowing location. It changes based off of what proxy I am using. Is there a way to completely disable this?

    I use Comcast in the Chicago area market and have a problem with the "Opt Out" stopping about once a year or so. It appears as being enabled at the Comcast Opt Out page, but the unresolved addresses are still going to the DNS "domain helper" service.
    What works for me is to turn off the opt out preference, log off from that Comcast account, and close Firefox. When I restart Firefox, log in to Comcast, and then set the pref to "opt out" again - it works as intended and doesn't cause me a problem until it happens like 10 to 12 months later.
    As far as why it seems to affect browsers in a different way, I have no idea. I do have Safari, Opera, and IE 8 installed, in addition to multiple versions of Firefox, but I don't use those other browsers enough to have seen a difference. I am usually opening pages from within Firefox in those other browsers to view the difference, ''or to print something that Firefox screws up in the Print Preview''.

Maybe you are looking for

  • What kind of SSD do I need for my Macbook Pro 13(MD102E/A)?

    Hi guys and gals, The thing is that my hd is dead as punk so I will have to replace it. I want to replace it with a Solid State Drive, can you guys help me find what kind of hard drive can I use for this model: MD102E/A Macbook Pro? Thanks in advance

  • HT4436 how to reset my security question

    I can't buy anything because I don't remember my security questions. How to reset them.

  • Multicam editing w/video filters

    I have a three camera multiclip to edit with filters applied to the multiclip itself. When I make a cut however, the new angle appears with no filters applied. I don't think they (the engineers) intended for me to paste the filters everytime I make a

  • Configure purchase order screen

    Dear Expert, Is it possible to configure purchase order screen so that Supply Chain Planners (who create purchase orders) cannot amend the Pricing Conditions view and Net Price field?   Sceen dump attached.   However we want Purchasing Managers (who

  • Configuring Ship to party,Sold to party and Payer

    Hi Experts , Subject:- Ship to Party, Sold to Party and payer In the customized invoice the client requires the above mentioned addresses to be displayed. Because all these three Partners are Different. How to configure the same in sap. Only after co