Automator - Run Shell Script - Does not return when script launches firefox

Automator does not work the same on my MacBooks as my Mac mini! Both are latest Snow Leopard. I'm trying to automatically setup my MacBook after it decides if I'm at work, or elsewhere.
The Automator Action "Run Shell Script" (Shell: /usr/bin/perl) does NOT return control when attempting to launch Firefox:
system("/Application/Firefix.app/Contents/MacOS/firefox-bin -private news.google.com &");
Note: the ampersand should cause Firefox to start as a background process.
It only returns control after I close Firefox. I have a "Show Growl Notification" as the second action, so I know that the first action has not completed. Odd thing is that this works on my Mac mini. I also noticed that another difference: on my MacBook status is displayed in the top toolbar when the Automator application is running.
Any ideas?

Thanks, it worked. I forgot about stderr and stdin.
I'm using Perl as it is part of a bigger script. I can quickly and easily figure out if I am at work where my MacBook is plugged into a network:
my $ethernet = qx(ifconfig en0) =~ m{status:.active}xms;
if ($ethernet) {
# setup stuff for work environment
} else {
# setup stuff for mobile environment
}

Similar Messages

  • VOD Sound drop at commercials and does not return when TV show resumes

    i've noticed that there are other customers experiencing this problem and I have not seen any response from COmast support.When playing a TV-Show from On-Demand, the sound drops when a commerical starts and does not return when the TV Show resumes.A reenct example: Walking Dead 515.Yes, I have called comcast support to report it.Of course they wanted me to go through the standard drill - Power Off/On; Refresh Signal; etc. with no result...The  problem occurs on series, e.g. - Walking Dead 515; Grey's Anatomy;  It happens after the episode has been in the On Demand listing for about a week.It seems that the sponsors are no longer paying for the commercial, so the sound drops when the commercial comes on.However, the sound does not come back when the commercials end and the show comes back on.Stopping playback and starting at that point returns the sound, but, - oftentimes, the counter doesn't advance correctly in the Recently Viewed listing, so you end up starting back to the last time you stopped it. This is clearly a bug on the back-end, and I don't expect it to be fixed until enough people complain and Comcast Support replicates the problem observes it for themselves.

    I have this EXACT problem on Anthony Bourdain's show Parts Unknown and the Last Ship.  As soon as it hits the advertizement sound drops and continues as dropped.  Pausing and restarting the program completely after exit regains sound but as soon as it hits another commercial it goes out again.  The counter problem makes this option only good for a few times.  Then it resets back.

  • I am suddenly unable to open mail from the dock. dock shows mail is up and running, but stamp does not respond when clicked, and will not quit. help?

    I am suddenly unable to open mail from the dock. dock shows mail is up and running, but stamp icon does not respond when clicked, there is no mail window opened, and will not quit. when double clicked, get new mail is not an option and I get no response with other actions.
    I am retrieving mail on my phone with no problem. this just began happening, no updates or problems with anything else.
    help?

    command-option-esc keys and force quit Mail. Then relaunch.

  • My yahoo toolbar does not start when I start firefox I have to redownload it why?

    why does my yahoo toolbar not work when I start firefox? i HAVE TO RE INSTALL IT EVERY TIME.

    Have you checked that all your plugins are up to date? See here: [https://support.mozilla.org/en-US/kb/use-plugins-play-audio-video-games?s=update+plugins&r=7&e=es&as=s#w_how-to-update-plugins]
    And updated all themes and extensions? See here:
    [https://support.mozilla.org/en-US/kb/troubleshoot-extensions-themes-to-fix-problems?redirectlocale=en-US&redirectslug=Troubleshooting-extensions-themes#w_updating-extensions]
    You should also try [[Clear the cache - Delete temporary Internet files to fix common website issues|clearing the cache]] to see if that helps.
    I suspect that this is an issue with the Yahoo toolbar rather than Firefox. There are a number of user reviews complaining about various problems on the [https://addons.mozilla.org/en-US/firefox/addon/yahoo-toolbar/ add-on page]. Unfortunately yahoo don't seem to offer support for the toolbar product (other than yahoo answers). It might be worth asking there as well if none of the above works.
    If after trying all of this you can't get it to work then let me know. There may be other features in Firefox that you can use to cover the same functionality that the yahoo toolbar gives you. What particular features do you like about it?

  • PIE Graph does not return when values = 0

    I use this code to create a PIE Chart
    select null LINK
    ,'E0' LABEL
    ,(select count(*)
    from parts
    where om_geometry like 'E0'
    start with childid = :P1_SELECTED_NODE
    connect by prior childid = parentid) VALUE
    from parts where childid = :P1_SELECTED_NODE
    union
    select null LINK
    ,'E1' LABEL
    ,(select count(*)
    from parts
    where om_geometry like 'E1'
    start with childid = :P1_SELECTED_NODE
    connect by prior childid = parentid) VALUE
    from parts where childid = :P1_SELECTED_NODE
    union
    select null LINK
    ,'E2' LABEL
    ,(select count(*)
    from parts
    where om_geometry like 'E2'
    start with childid = :P1_SELECTED_NODE
    connect by prior childid = parentid) VALUE
    from parts where childid = :P1_SELECTED_NODE
    union
    select null LINK
    ,'E3' LABEL
    ,(select count(*)
    from parts
    where om_geometry like 'E3'
    start with childid = :P1_SELECTED_NODE
    connect by prior childid = parentid) VALUE
    from parts where childid = :P1_SELECTED_NODE
    union
    select null LINK
    ,'E4' LABEL
    ,(select count(*)
    from parts
    where om_geometry like 'E4'
    start with childid = :P1_SELECTED_NODE
    connect by prior childid = parentid) VALUE
    from parts where childid = :P1_SELECTED_NODE
    It works beautifully, except when each of the values returned equate to zero.
    When this is the case the svg chart is not returned. Any ideas?

    That will come in handy. I have some line graphs to do as well. I am using version 2.2 so i don't think they fixed it. However, i have some good news i have found a work around to my problem. With my set of data i am always going to be bringing back at max 5 values for the data, so i created an item type for each one and set a value in a temporary table. e.g.
    declare
    l_id number;
    begin
    delete from graph_temp where name like 'E0' and graph_name like 'P1_GEOM';
    select count(*) into l_id
    from parts
    where om_geometry like 'E0'
    start with childid = :P1_SELECTED_NODE
    connect by prior childid = parentid;
    if l_id > 0 then
    insert into graph_temp (name,value, graph_name) values ('E0',l_id,'P1_GEOM');
    end if;
    return l_id;
    end;
    As you can see the table only gets populated when the value is greater than zero. My graph then becomes a simple select from the graph_temp table. The only change i now need to make is to have a session id column in the graph_temp table so i only remove the correct session info each time.

  • The crash report always appears whenever I start up my PC and open Firefox, it does not appear when I close Firefox.

    Everytime I start up my PC and open Firefox, the crash report will appear. The crash report does not appear subsequently, it only appears when I first open Firefox. I do not seem to have problems when using Firefox otherwise, though I do get new Firefox windows opening and showing me spam.
    == Crash ID(s) ==
    1d19f5b9-25db-4f39-9948-447622100518

    http://crash-stats.mozilla.com/report/index/1d19f5b9-25db-4f39-9948-447622100518
    Norton's Intrusion prevention system is causing the crash. You could try updating Norton. If that doesn't work you could try to disable Norton Intrusion prevention
    [[Troubleshooting extensions and themes]]
    To make sure, you can disable all add-ons in [[Safe Mode]]

  • IMOVIE does not respond when it launches

    When I launch IMOVIE it freezes. It states its trying to launch thumbnails movies.

    Hi
    Very often this is due to errors in iPhoto library as iMovie doesn't move or copy any photos or audio files but just point's to where they are stored and if this link is broken it will behave as described.
    Medicine:
    • YOU NEED LOT's of TIME to do this. (6 - 12 hours not uncommon at all)
    Start iPhoto - BUT KEEP alt-key and cmd-key down during up-start
    Now You get a list of choices
    Select all of them and let Your Mac be - No Internet, no other program running in background - AND KEEP IT connected to Mains as batteries may run down if not connected giving even more problems ! !
    Then when done - Try iMovie again - Now it should find the photos and not just the Thumbnails.
    Yours Bengt W

  • WFM_Op does not return when iterating indefinite​ly?

    I'm using the WFM_Op function with a DAQPad 6020E with the WFMsingleBufRegenerate.C that is provided with NI-DAQ. If I change the number of iterations to zero (i.e., indefinite iterations), it never proceeds to the next instruction.
    I'd ideally like to be able to have it repeatedly output a waveform in the background, but so far I've been unable to do it.

    Hello;
    If you input a zero as the iterations parameter, the NI-DAQ driver will probably hang your computer.
    The way to keep generating the same waveform on a output channel, is to set up a continuous Analog Output operation, and pass the same array of point (the array that will determine the waveform), and keep running the Analog Output task in a loop.
    That will make the same array of point to be generated over and over again, which will accomplish what you need.
    Hope this helps.
    Filipe A.
    Applications Engineer
    National Instruments

  • Re: VOD Sound drop at commercials and does not return when TV show resumes

    I have this EXACT problem on Anthony Bourdain's show Parts Unknown and the Last Ship.  As soon as it hits the advertizement sound drops and continues as dropped.  Pausing and restarting the program completely after exit regains sound but as soon as it hits another commercial it goes out again.  The counter problem makes this option only good for a few times.  Then it resets back.

    Hi hierge, is this happening on both of your boxes or just the RNG150N (the bigger box of the two)?
    Thank you

  • I have pinned google reader as an app, but it does not load when I restart firefox beta 8. Any ideas?

    I use google reader (www.google.com./reader) and thought I would use the pin as app feature. I right click the tab and select pin as app. The tab shrinks and looks like it has done this but when I close and restart Firefox the pinned tab is not there.

    I am having this problem with all app tabs I have tried creating: hotmail, facebook, linkedin.

  • Create a file if it does not exist when a script runs

    I have a shell script I run using automator that puts on the clipboard a string like Page 001, Page 002 and so forth incrementing the number 00x everytime it runs. I use it when I need to sequentially name files when doing things like scanning documents and so forth.
    Presently, I have to manually create a file "~/counter" and enter the integer to start counting from. So if ~/counter contains 0, pbcopy places "Page 001" on the clipboard and so forth
    The shell script
    <pre class="jive-pre">
    #!/usr/bin/env bash
    myvar=$(cat ~/counter);
    let myvar=$myvar+1;
    mycopy=$(printf "Page %03d" $myvar);
    echo "$mycopy" | pbcopy;
    echo "$myvar" > ~/counter;
    </pre>
    works fine now.
    I want to modify the script so that if ~/counter does not exist, the script creates a file and initializes an integer value say 1 in the file. If the file exists, the script uses the integer used in the file.
    How can I get this done?

    And because I can not leave "Well Enough Alone"
    #!/usr/bin/env bash
    count=0
    [[ -r ~/counter ]] && read count anyjunk_aftercount <~/counter
    count=$((count+1))
    echo "$count" >~/counter
    printf "Page %03d" $count | pbcopy
    The anyjunk_aftercount is just in case something else gets into ~/counter. Assuming the first non-blank field on line 1 is the count, then anything following the count will be stuffed into anyjunk_aftercount and since the script ignores it, it will go away when the script re-writes ~/counter with just $count

  • Automator runs shell script differently

    hi
    i build a little shell script that mounts my network-shares when they are available - that's works perfect if run by terminal but if i run it via Automator-Run shell script it does ******** - it doesn't seem to recognize my variables and creates dirs like $“Data“  instead of just Data
    can anyone help me with that?
    #!/bin/bash
    # connects to network shares if server available
    #config - wich server and mountpoints, login
    server=$"192.168.2.1"
    serverName=$"NAS(AFP)"
    dir=$“Data“
    dir2=$“Data1“
    login=$“xxx“
    pw=$“xxx“
    #connect-test and create mountfolders
    ping -q -c3 $server > /dev/null
    if [ $? -eq 0 ];then
      if [ -d "/Volumes/"$dir"" ]; then
      echo "folder $dir exists"
      else
      echo "creating folder $dir"
      mkdir "/Volumes/"$dir""
      fi
      if [ -d "/Volumes/"$dir2"" ]; then
      echo "folder $dir2 exists"
      else
      echo "creating folder $dir2"
      mkdir "/Volumes/"$dir2""
      fi
    #mount
      mount_afp "afp://"$login":"$pw"@"$serverName"._afpovertcp._tcp.local/"$dir"" "/Volumes/"$dir""
      mount_afp "afp://"$login":"$pw"@"$serverName"._afpovertcp._tcp.local/"$dir2"" "/Volumes/"$dir2""
      echo „ping ok“
    else
      echo „failed to connect to $serverName“
    fi

    FYI.  If you create an Alias of a mounted volume, the Alias will record all the connection information, except the password.  If your keychain is not locked, then when double clicking on the Alias, it will get the password from the keychain and mount the networked volumes (assumes you allowed the password to be stored in the keychain when you first mounted the volumes interactively).
    The Aliases can be put into your System Preferences -> Users & Groups -> Startup Items if you like.
    If this is a laptop and you are re-mounting the volumes when you get to a specific location, you might want to look at ControlPlane
    <http://www.macupdate.com/app/mac/39644/controlplane>

  • Apple Automator - Run Shell Script Application

    Morning, hope somebody can point of my error please.
    I'm attempting to create an Application wrapper for a minecraft server.
    I've done the following
    Automator > Application
    I've dragged in 'Run Shell Script'
    The Shell dropdown is '/bin/bash'
    The Pass input is 'as arguments'
    In the script I have '
    cd /Volumes/3Tb/Bukkit_live
    /usr/bin/java -Xmx2G -jar /Volumes/3Tb/Bukkit_live/minecraft_server.jar nogui
    Now when I run it through the automator app, it works fine, the server starts, however when I try and run it as a standalone application it does nothing ?
    Please help.
    Thanks in advance.
    Darren

    Best guess is that there is an environment variable in your Terminal session that does not exist when you are running an Automator workflow.
    You could try running an Automator workflow that does Run Shell Script with something like
    ( pwd
      id -a
      echo $#
      echo "$@"
      printenv
    ) >/tmp/automator.environment.txt
    Then do 2 things.  Run it within Automator and copy the /tmp/automator.environment.txt file someplace safe.  Next save it as an Automator app and run it that way.  Compare the 2 automator.environment.txt files and see if anything significant is different between the 2.
    This is just a guess (an educated guess, as this sort of thing has happened to others in the past when they see a difference between running a script interactively and running it as an embedded app).

  • WebI does not return failed when scheduling a report which only holds parti

    WebI does not return failed when scheduling a report which only holds partial results.
    We have scheduled reports which take some time to run. When they are scheduled they sometimes show successful even though the report only holds partial results. The only indication is when you open the report as webi report you see the warning that it holds partial results.
    When running the report manually, it works file.
    The issue is not in the no of rows in the universe settings because we this unselected. The issue is that it times out.
    The reason that it times out is that a lot of resources are used for loading and processing data when the report is scheduled. When running it manually, it works because at this time the serverload is less. the time in the universe is set to 10 min.
    The version we have is BOXIR2-SP4.
    Ok. Issue identified.
    The question is - why is the report successful when it holds partial results? If this is normal behavior, noone can really trust the scheduled reports, especially when you save it to excel and send it by mail.
    Is there a solution for this except increasing the allowed query time which would not solve the issu but only allow more reports to complete?
    Edited by: Karlgren Michael on Sep 17, 2009 1:22 PM

    Hi ,
    Currently this problem exists in XI R2. This feature will be part of thenext Service Pack i.e XI R2 SP6.
    This CER will be delivered from IDC Webi and BIP Platform as part of Jupiter Sp6.
    Problem Statement:
         Scheduled WebI Reports which are partially refreshed are distributed to the destinations for Users to View and make decisions. These users arenu2019t usually aware that these reports have u201CPARTIAL RESULTSu201D
    Recomended Solution:
        Allow the Schedule Creator / Modifier to set a parameter to stop the distribution of the u201CPARTIALLY REFRESHEDu201D WebI report.
    Thanks
    Salini

  • When the program gets terminated unexpectedly (power failure, UPS fails), when I reopen it, it usually does NOT return the previous pages, as I have checked in the 'options' box,

    # Question
    When the program gets terminated unexpectedly (power failure, UPS fails), when I reopen it, it usually does NOT return the previous pages, as I have checked in the 'options' box, but goes to some random collection of pages often from months ago. Very frustrating - can anything be done to COMMAND it to save current pages and re-open there? (As I said, I have this box checked in the options, but it does not work ..

    Very Important, how much Free Space is on your Hard Drive first of all? Click on the Macintosh HD on the Desktop, then do a Get Info on it.
    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install 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 at top of the screen. (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. Select your Mac OS X volume.
    5. Click Repair Disk, (not Repair Permissions). Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a 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.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    If perchance you can't find your install Disc, at least try it from the Safe Boot part onward.
    Do they launch OK while in Safe Mode?

Maybe you are looking for