Using Automator to open a program with a delay after a programmed restart

Hi to all! With my old PowerPc I used to start unattended sessions of my Newsreader (Unison) overnight simply putting Unison in my Login elements window, and programming a restart at a fixed hour. Unfortunately, with my very fast new iMac this doesn't work: Unison opens too fast after the programmed restart, before a network connection has been established, and Unison is unable to see the NewsServer online when it starts (error "nodelist not found", typical of a not yet established Internet connection). Note that I downgrade to Unison 1.8.x to do this, as the Unison 2.x program cannot be closed with a session running to resume it after start: it simply defaults to "Pause transfers" after quitting, and need a clic on "Resume" after reopening.
Obviously, what I need is to introduce a "wait (say) 2 minutes before the opening of Unison", or anything that can check the Internet connection before Unison starts. May anyone instruct me to do this with Automator and/or AppleScript?
In fact, I tried to generate a workflow in Automator, with a Pause after the start of the process, then the instruction to open Unison. I put the saved workflow in my Login elements, but it didn't work on my iMac 27, i7Core, Snow Leopard installed. I added an "execute workflow" at beginning of the process, but the Pause command gives always an error and the process stops before Unison' opening.
Any suggestion or help in writing an Automator or AppleScript workflow/script to be put among the startup items?
Thanks a lot!

I am trying to use Automator to restart an application. I figured how to quit the application, however when I relaunch it, it asks for password permission... how can I use automator to enter the password? or is there a way to launch the software with password in a script?

Similar Messages

  • I am trying to use automator to open a safari popup window that will automatically log me into whatever account and I attempted to type up an applescript that utilized the "System Events" function with no avail, any ideas?

    I am trying to use automator to open a safari popup window that will automatically log me into whatever account and I attempted to type up an applescript that utilized the "System Events" function with no avail, any ideas?

    Hi
    In iMovie'11 (version 9.0.x)
    on top menu row - Apple/iMovie/File/Edit/Cut (Can vary dep. on language - in Swedish Apple/iMovie/Arkiv/Redigera/Klipp . . . )
    down Cut menu - Slow playback/Raspid Playback/Re-play in Slow Motion and onvards
    Here one can select the Pre-Set speeds
    Are you familiar with getting 'inspector' to run?
    No - but I guess that Double Click on clip/sequense or ctrl-Click on it might open it.
    Yours Bengt W

  • How do I use Automator to duplicate a folder with graphics on my desktop and erase their Resource forks?

    How do I use Automator to duplicate a folder with graphics on my desktop and erase their Resource forks?
    I do not use command line and tried to use ZapResourceForksAMAub_1.2 which I downloadedand instaled the Zap Resource Forks.action. Next I tried to use their sample copy-zap-rsrc.workflow in Snow Leopardon my Mac Pro. The 3 different steps are displayed in Automator but there is no place to put in which folder (on my deskto) to copy, and remove the resource forks from the graphic files.
    Can sombody please step me through this please please.
                                                                                          W.W.

    Unfortunately, Back to My Mac only works across computers using the same iCloud account.

  • How can I use automator to open terminal change directory run a python script?

    Hi all,
    I dont really ever use automator - which may be my big problem - and I am trying to make an apllication that seems fairly simple in theroy. I want something that will lunch terminal, cd to the place where my python script lives and then run it. I have tried a number of suggested ways and can get the terminal to open and the directory to change but cant figure out how to run the script. This is my workflow if i did it manually each time
    - open terminal
    - type cd "the place where my file lives"
    - type python uploadr.py -d
    I can get terminal to open then cd to the right place but cant get the "python uploadr.py -d" to run without an error.
    any help would be very appricated
    thanks!!!
    J

    this is the script I got closest with - I know its something to do with breaking those two commands up but i just dont know how to do it
    on run {input, parameters}
              tell application "Terminal"
      activate
                        if (the (count of the window) = 0) or ¬
                                  (the busy of window 1 = true) then
                                  tell application "System Events"
      keystroke "n" using command down
                                  end tell
                        end if
                        do script "cd /Users/behole/Desktop/FlickrUpload/" & "python uploadr.py -d" in window 1
              end tell
              return input
    end run
    this is the error I get in terminal after I run it
    Last login: Mon Jul 23 15:37:17 on ttys000
    be-holes-MacBook-Pro:~ behole$ cd /Users/behole/Desktop/FlickrUpload/python uploadr.py -d
    -bash: cd: /Users/behole/Desktop/FlickrUpload/python: No such file or directory
    be-holes-MacBook-Pro:~ behole$

  • Using flash to open a program

    Is there any way of making a button in flash open a programs
    on my pc. It is not for the internet i would like to create my own
    user interface over the old windows one with my favourite programs!
    Thanks
    Liam

    Hi Liam,
    Or you can use our third party tool called JStart, rather
    than using batch
    files.
    Why ?
    Well read this
    http://www.flashjester.com/index.php?section=faq&cPath=28_41#181
    You can download a FREE evaluation copy from
    http://jstart.flashjester.com
    please look at the example files provide.
    Regards
    FlashJester Support Team
    e. - [email protected]
    w. -
    http://www.flashjester.com
    There is a very fine line between "hobby" and
    "mental illness."

  • How can u open a file with .exe extension after it was unpacked?

    Thank you Linc Davis for THE ARCHIVER, I was able to unpacked the program. However, after it was unpacked, I clicked the file wtih .exe extension and I got a message that this file will not be extract with this program. Is there another way to open file with .exe extension after it was unpacked by THE ARCHIVER...??? Any assistance is highly appreciated.

    .exe files are Windows executables and do not run in OS X.  You would have to install Windows to use it.
    Windows on Intel Macs
    There are presently several alternatives for running Windows on Intel Macs.
    1. Install the Apple Boot Camp software.  Purchase Windows XP w/Service Pak2, Vista, or Windows 7.  Follow instructions in the Boot Camp documentation on installation of Boot Camp, creating Driver CD, and installing Windows.  Boot Camp enables you to boot the computer into OS X or Windows.
    2. Parallels Desktop for Mac and Windows XP, Vista Business, Vista Ultimate, or Windows 7.  Parallels is software virtualization that enables running Windows concurrently with OS X.
    3. VM Fusionand Windows XP, Vista Business, Vista Ultimate, or Windows 7.  VM Fusion is software virtualization that enables running Windows concurrently with OS X.
    4. CrossOver which enables running many Windows applications without having to install Windows.  The Windows applications can run concurrently with OS X.
    5. VirtualBox is a new Open Source freeware virtual machine such as VM Fusion and Parallels that was developed by Solaris.  It is not as fully developed for the Mac as Parallels and VM Fusion.
    6. Last is Q.  Q is a freeware emulator that is compatible with Intel Macs.  It is much slower than the virtualization software, Parallels and VM Fusion.
    Note that Parallels and VM Fusion can also run other operating systems such as Linux, Unix, OS/2, Solaris, etc.  There are performance differences between dual-boot systems and virtualization.  The latter tend to be a little slower (not much) and do not provide the video performance of the dual-boot system. See MacTech.com's Virtualization Benchmarking for comparisons of Boot Camp, Parallels, and VM Fusion. Boot Camp is only available with Leopard or Snow Leopard. Except for Crossover and a couple of similar alternatives like DarWine you must have a valid installer disc for Windows.
    You must also have an internal optical drive for installing Windows. Windows cannot be installed from an external optical drive.

  • How can I use Automator to open and save Word docs with links?

    Hi-
    I'm having trouble building a Workflow to open and save Word docs with links.
    My Workflow so far:
    1. Get Finder items
    2. Copy Finder items (to new folder)
    3. Rename selected items
    4. Open selected items (Word docs)
    Three problems occur.
    The first is a Word 2004 problem -- I can't get the warning "This document has links in it; do you want to open it with/without updating the links" to go away (Unilke the Macro warning toggle capability, there is nothing in the Preferences for Word 2004 that addresses the links warning, as far as I can tell; any insight you can shed on this would be terrific.)
    The second problem happens with Automator: if I manually accept the update of the first document's links, Automator opens that document but then halts completely, even though I've instructed it to open multiple documents.
    The third problem I have is that there's no Finder action in Automator that allows me to save the document that's now open (as far as I can see).
    Any suggestions for how to fix? If I can get this to work, and scheduled in iCal, it will be an unbelievable time saver.
    Thanks,
    Jeremy
    PowerPC G5   Mac OS X (10.4.6)  

    Hi there Jeremy,
    to do this you are going to have to add in some Run AppleScript steps...
    These will rely on GUI Scripting. So first you need to activate GUI Scripting.
    Now we need to add in a Run AppleScript action to the end of your workflow...
    This will replace your current number 4 in the workflow (Open Selected...)
    click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">on run {input, parameters}
    set allItems to every item of input
    repeat with currItem in allItems
    tell application "TextWrangler"
    open currItem
    end tell
    activate application "TextWrangler"
    tell application "System Events"
    tell process "TextWrangler"
    delay 2
    --when the Word document is opened I have told it to press okay !
    --I don't know what key you want it to press in the dialog box
    keystroke return
    delay 2
    --save the doc
    keystroke "s" using command down
    delay 5
    --close the doc
    keystroke "w" using command down
    end tell
    end tell
    end repeat
    return input
    end run</pre>
    The above script should open each Word Document, press a button in the dialog box then do a save and then close the doc...then loop through the rest of them.
    You need to replace the name Text Wrangler with Microsoft Word (or whatever it is called!), I don't have it on my Mac.
    You will have to let me know what button needs pressing in the first dialog, if it isn't the 'highlighted ' one then we will have to amend the script...
    regards
    Ric

  • Possible to use mySQL, an open source program with Labview without the use of toolkit, just like we can do with MySQL with Command line.

    Hi i am trying to see if I can use sys exe .vi to execute Mysql commands. Is it possible to use without toolkit?
    regards,
    Clement

    Hi. I know there's a free toolkit that use ADO. But the problem is that my company not wish to splurge on the purchase of MS database server or  alikes, but prefer to run MySQL. So can I do the labview with the MYSQL only?
    Clement

  • Using applescript to open a folder with a keyboard shortcut

    hello -
    i have a rather simple question (probably). is there a way using applescript to create a keyboard command to open a folder? i.e. command shift a opens the applications folder and command shift u opens utilities. can i use applescript to designate a keyboard command to open a folder i have created? also, the script editor does not have to be open for me to utilize scripts, correct?
    thanks for your patience with a newbie.

    You can't make a keyboard shortcut to run a specific application from OSX, although there are third party applications such as Quicksilver that can do things like that. You can use an AppleScript to activate an existing menu item, for example:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #FFDDFF;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    tell application "Finder" to activate
    tell application "System Events" to tell application process "Finder"
    keystroke "A" using {shift down, command down}
    end tell</pre>
    Other alternatives to keyboard shortcuts are to use the Scripts Menu or add an application to the Finder's toolbar. The Script Editor does not need to be active to use scripts.

  • Use Automator to launch a program every night at midnight

    I want Automator to launch Tivo Transfer every night at midnight. How would I set that up? Thanks!

    You can actually create an iCal event that will run an AppleScript or Automator action at a given time, and have that event repeat at the same time every day. Another way is to use a Cron job.
    For iCal:
    1. Save the Automator workflow as an application.
    2. Select Add Alarm on a new or current event.
    3. Select Open File: Other, and open your saved workflow application.
    4. Enter the time and date that you want the workflow to run.
    If iCal is not running at the scheduled time, the workflow will run when iCal is next opened.
    Message was edited by: Emmerac

  • Screen unresponsive momentarily, open app suddenly with iPhone 5 after update iOS 8.1.1

    this condition after update my iPhone 5 to iOS 8.1.1n
    1. sometime screen unresponsive , i press power button to sleep, wake up using home button it will work, but if i press power button for wake up screen still unresponsive.
    2. Setting for sleep 1 minute , but after more than 1 minute still not sleep i have to press power button to make slleep.
    3. if i don't press home button for sleep suddenly iphone will open some application like mail, search app (type some letter), open passbook, play music and the stranger thing is suddenly make a call.
    anyone else having this issue?   any solutions?
    iPhone 5, iOS 8, 64 GB

    hi Franxis . . . below is what I had to do . . . I believe that my  crashing, perpetual rebooting and reset loops was due to some combination of my iPhone 5's hardware, iOS 8.1.1, and some applications.
    I upgraded to iOS 8.1.1 upon release.   approx. 10 hours after this upgrade, the iPhone 5 displayed a bright white screen.  tried hard reset & phone would not turn on.  iPhone eventually turned on, to display lines & colors, but iPhone was inoperable - would not reset using sleep / home key combination or connection to  iTunes
    I brought my iPhone to the Retail Store -  RS was able to reset phone, and then began the process of restoring from my last backup there & said it would continue throughout the day.  After the restore from backup completed, the crashing, perpetual rebooting and reset loops started again.
    1. I was eventually able to perform a DFU &  installed the phone as new (factory reset, I believe).
    2.  I did NOT perform a restore from backup.
    3. The phone seems to run fine now
    The long story is that days 1-3, after the DFU / factory reset, the phone ran fine.  And, on day 4, I began installing Apps again.  When I installed the fourth App, and the phone crashed, changing colors, perpetually rebooting, and unable to start / get into a functional mode.   On day 4, I had to leave the phone alone for a while - was eventually able to perform another DFU - factory reset -  and again no restore from backup.  Today - day 5 - my iPhone is running fine again and I installed 11 Apps now (not the one that crashed my iPhone), accessed them all, and phone seems fine.
    For me, it seems like an App, or some Apps that I was running caused the issues for me - it could be a combination of everything (certain Apps + iOS 8.1.1 + hardware not getting along). 

  • Using Automator to create a "video server"

    I'm looking to turn an Xserve into a video server for a digital signage situation. I know I can use Automator to open a video file in Quicktime and automatically play it full screen, however, is it possible to do the following with automator (or in some other easy fashion):
    1. Have it go into a designated folder and open up the video file in that folder no matter what the files name is. (So I can update the video content monthly and just copy the new file into the folder and not have to change anything in the Automator script. I could always give the file the exact same name every month, but it would be nice if I didn't have to.).
    2. Automatically run the Automator script on system boot - so we can boot up the Xserve in the morning with 1 button and once the OS is up it automatically starts playing the video file.
    3. Last, (and this is probably the hard one), any thoughts on a way I can get the server to play a file to its end, and then check and see if there is a newer file present before looping? If not, it continues looping the same file, if so, it begins looping the new file instead? I'm guessing this would be more of an Applescript thing than Automater? This would be for a "content update while playing" situation.
    I may not even mess with number 3, but the first two are a must. I'm not asking that you take time to develop working code for all the above, just letting me know that I can do it and whether I should be looking at Automater or Applescript for certain functionality would be fine and I can further research from there.
    Thank you.
    Don Hertz

    1. In the Finder actions you will need:
    - Get Specified Finder Items, and point it towards the folder that will contain the movie.
    - Get Folder Contents - to get what's inside the folder.
    - Filter Finder Items - set to filter by 'Name Extension' 'Is equal to' 'mov' and make sure all your video files have the right extension...
    - Open Finder Items - in QT Player - note that this might cause problems if there are multiple files in the folder...
    Then from the QT Player actions:
    - Play Movies.
    2. Save As... Application, then after saving, drag the app into the login items for the user account.
    3. That's going to need some AppleScript, but this thread should get you started:
    http://discussions.apple.com/thread.jspa?threadID=455825&tstart=0
    Ian

  • Open pdf doc with reader 9 when acrobat 8 installed

    Hello,
    I created a form with acrobat 9 and distributed it.
    It appears that on a windows xp computer that already has acrobat 8 installed, it is impossible to open the form with reader 9, (after installing it, of course...).
    Then, I'd rather create an excel file...
    Please, all suggestions to solve that issue very quickly are welcome.
    Thx++
    Pat

    Post your question in the forum for LiveCycle Rights Management.

  • I am using report generation toolkit 1.1 with Labview 7.0 and Office 2003 profession​al. The create new report VI opens Excel but throws error (-21471672​62- from automation open VI) when I try to open MS word. please help...

    I am using report generation toolkit 1.1 with Labview 7.0 and Office 2003 professional. The create new report VI opens Excel but throws error (-2147167262- from automation open VI) when I try to open MS word. please help...

    Hi Leo22,
    Does this error occur if you use any of the example programs that come shipped with LabVIEW? I would try opening one of the examples that write data to Word and see if those give you an error. Also, have you tried just putting down a New Report.VI and change the report type to Word? If this simple vi (that's all you need to open Word) breaks, I would check to see if there are any instances of Word still open. Check the task manager to see if any word processes are still open. There should not be a problem accessing Word 2003 from LabVIEW 7.0. If neither of these solutions work, please give some more detail about your application and we can research further. Thanks!
    Jeremy L.
    National Instruments
    Jeremy L.
    National Instruments

  • How can I open a program using Java and then perform certain tasks with it?

    For example, and this is just an example, I want to write a Java program that opens MS Paint and then manipulates that program. This can be useful to automate certain tasks.
    My question is whether this can be done writing Java code and if so how? If not possible, would I need to use a scripting language instead?

    write a Java program that opens MS Paint and then
    manipulates that program. This can be useful to
    automate certain tasks."manipulates" is a too wide term. Let me narrow down:
    1. If you want to open (run) the program and then shut (kill) it down it is possible and fairly trivial to do in java. Look up Runtime and Process classes in java.lang package
    2. If you want to open the program and edit some image/document in the opened program. It is very difficult in java. May be possible... using some Java/COM bridge, assuming your native program is COM/Active-x compliant. Note: these things go beyond the boundary of JVM and needs to interact with host OS and involves shared memory, ipc and all "low level" stuffs.
    If you want to be able to play around with these COM/Activex apps- choose .NET instead :-)
    3) You can open the program from java and pass it some command line arg as in (1) above and then the program will load that document/image at startup automatically. You may then edit the doc/image thru that program itself. However, Java is not doing anything for you here, other than just starting off your native mspaint.exe ot notepad.exe.
    -BJ
    Message was edited by:
    Bimalesh

Maybe you are looking for

  • Java 7 (1.7.0_17) installation problem on Mac OSX

    Hi, I tried to install jdk-7u17-macosx-x64.dmg from the oracle site and the installer said that the installation was successful. It installed it under the following directory with the listed contents: /Library/Java/JavaVirtualMachines/jdk1.7.0_17.jdk

  • Presentation Variable in Text field

    Hi, I am trying to pass the text field parameter to Analysis from Dashboard Prompt. I can pass the selected value of check box, list item but value that I put into the text field. any idea how to do it?.. Thanks.~

  • I am trying to sync my iPod to my iTunes on my netbook

    iTunes on my netbook seems to have stopped recognizing my old iPod, so it is bringing up the new iPod tutorial when I connect it. However, I just get to the second page ("Sync with itunes") and can't move past it. There is no button to continue or cl

  • Solution Manager - System Monitoring

    Hi Basis associates, This is a open discussion for SAP Basis experts to discuss what the pain points are when it comes to SAP System Monitoring on 1. Solution Manager 2. Third party Monitoring tools for any SAP Application (ABAP, ABAP+Java, Java only

  • For the hierarcies posted before

    Hi all for the hierachies question i have posted, i want to inform that  presently am using Bi 7.0 and am executing queries in a WAD through a PORTAL. further i need any PDFs regarding VISUAL COMPOSER Thanks Sherwin