Automatically run workflows

ok, i'm new to automator but not to mac. I just made myself a workflow from a guide to sync to itunes libraries. it gets the specified servers but when it tries to connect, the spiral thing just keeps spinning.
How do i get this to work?
Regards

I just added some options (oops, it looks like a character got lost in there, too). I have an AppleScript that uses rsync with logging, and it produces itemized changes in the logs. Running it with the --dry-run option (which doesn't actually do any copying), the command is something like:
/usr/bin/rsync --archive --extended-attributes --human-readable --delete --dry-run --itemize-changes --verbose --log-file='/Users/johndoe/library/Logs/rsync.log' '/Users/johndoe/Music/iTunes/' '/Volumes/johndoe/Music/iTunes'
On second thought, here is the complete script - give it a try (especially with the dry run option) and see if you get different results:
<pre style="
font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 720px; height: 340px;
color: #000000;
background-color: #FFD760;
overflow: auto;"
title="this text can be pasted into the Script Editor">
-- use rsync to sync a source folder to a destination - only new or modified files are copied
-- see http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/rsync.1. html
property SourceFolder : missing value -- the Finder path to the folder containing the files to copy
property DestinationFolder : missing value -- the Finder path to the folder to copy to
property DeleteFiles : true -- delete destination files if they no longer exist in the source?
property ExtendedAttributes : true -- include extended attributes?
property DryRun : false -- testing?  if so, don't actually do anything, just show what would have happened
try
SourceFolder as alias -- test
on error
set SourceFolder to (choose folder with prompt "Select a source folder:")
end try
set SourceFolder to quoted form of POSIX path of SourceFolder -- format for the shell script
try
DestinationFolder as alias -- test
on error
set DestinationFolder to (choose folder with prompt "Select a destination folder:")
end try
set DestinationFolder to quoted form of POSIX path of DestinationFolder -- format for the shell script
set LogFile to (POSIX path of ((path to home folder) as text) & "library/Logs/AS_rsync.log") -- a console log
set Command to "/usr/bin/rsync --archive --human-readable "
if ExtendedAttributes then set Command to Command & "--extended-attributes "
if DeleteFiles then set Command to Command & "--delete "
set Command to Command & ¬
"--exclude='.DS_Store' " & ¬
"--exclude='.Trash*' " & ¬
"--exclude='cache*' " & ¬
"--exclude='Cache*' " & ¬
"--exclude='SyncServices' " -- files to exclude
if DryRun then set Command to Command & "--dry-run --itemize-changes --verbose "
log Command & "--log-file=" & (quoted form of LogFile) & space & SourceFolder & space & DestinationFolder
do shell script Command & "--log-file=" & (quoted form of LogFile) & space & SourceFolder & space & DestinationFolder
if DryRun then
(choose from list (paragraphs of the result) with prompt "dry run results:" with empty selection allowed)
else
tell application "Console" to open LogFile as POSIX file
end if
</pre>

Similar Messages

  • Auto run workflow, upon mounting of USB drive

    Hi,
    I am trying to create a workflow, that copies all the files for my Dissertation to a folder on a USB drive.
    I have got the basic workflow to work, using Get specified finder items>Get folder contents>Copy folder contents, which works fine however I would like this workflow to automatically run every time I insert my USB stick, so it always has the most up to date version of the files on it and I cant find out how to do this last bit!
    Any ideas?
    Regards
    Simon

    you can use a launch daemon set to be triggered when you mount a disk.
    Use [Lingon|http://lingon.sourceforge.net> for that. If the only disk you ever mount is your USB stick, it's quite straightforward. Just set the launch daemon to run your workflow on disk insertion.
    If you also use other disks you'll simply get an error message when you mount something else and your thumb drive is not present. If you don't want to see the error message you can use an apple script. Something along the following lines:
    tell application "Finder"
    if exists disk "thumbdrivename" then
    tell application "path:to:your:workflow" to launch
    end if
    end tell
    and set the daemon to run that instead of your workflow.

  • Business object for Automatic Run in FICO

    Hi experts,
       In Automatic run the work flow has to trigger when the status as ' Proposal is ready to be started / created ' in Transaction F110 and then post the payment in workflow. Please let me know if any business object is avalable for that. If we can trigger the workflow through the Business Transaction Event means, let me know the procedure and the parameters for the Business Transaction events.
    I ll reward the points if it is helpful.......
    Thanks and Regards,
    Velu.....

    Try BTE, process 00001860. Sample FM SAMPLE_PROCESS_00001860. There is no specific business object for this as far I know, therefore you can build your own or start a WF directly.
    Regards, IA

  • How can I disable the Photos app from automatically running when I plug in my iPhone?

    How can I disable the Photos app from automatically running when I plug in my iPhone?
    I have no intention of ever using Photos, in fact, having to abandon Aperture takes me one step close to moving back to Windows, but I digress.
    I just want to NOT have to kill the Photos app every time I plug in my phone.
    Thanks.

    I am still seeing the option Image Capture, like shown in the screenshot that Rysz posted.   But it is another example of the hide-and-seek Apple likes to play with us.
    The option has to be set for each device individually. With the device connected to USB, you have to click the tiny disclosure triangle in the lower left corner of the sidebar to reveal the option.
    I was perfectly happy with the program I paid for (Aperture), and now to maintain the functionality I have to pay for another application (LightRoom) to get the functionality that I paid for in Aperture.
    Aperture 3.6 is working well with Yosemite. I will use it, as long as I have a Mac, that will run Yosemite or a compatible system.
    Have you looked at Capture One?  It looks much more similar to Aperture than Lightroom.

  • In lightroom, is there a way to create a preset where a brush is automatically run?

    In lightroom, is there a way to create a preset where a brush is automatically run? Example: If I make multiple different brush adjustments on an image, and I want the exact same edit on another image, can I create a preset for that?

    Hi Heather,
    Lr does not (natively) support saving brushes in presets, but it's a UI limitation, not an "under the hood" problem.
    You can add brush strokes (or spot removals, or .. ) to a preset using a script I wrote (and offer for free), called
    'Add Spots Or Paint To Preset'
    available here:
    robcole.com - MiscLrScripts
    Rob

  • [OIM 9.1.0.2] Attestation Process scheduled is not automatically running

    Hi Gurus,
    IHAC that noticed that some attestation processes have not been triggered in the specified scheduled time, . So the Attestation tasks are not displayed into specified Reviewer's inbox (To-Do List).
    There is a group responsible for creating the attestation processes and they have created a lot of processes. It seems that for some reason the attestation scheduled task is not automatically running for some cases.
    For the attestation processes that were stopped, it is needed to run manually the scheduled task. With this action the attestation task flow runs.
    Any tip on what could I check?
    Thanks.

    Hi,
    I checked the Schedule task 'Initiate Attestation Processes'. It is Enabled, with frequency 30 min. Actual status: Inactive.
    I got the follow error on the logs:
    Something related to Memory.
    I am investigating why when I use 'Run Now' option the attestation process work. Any tip?
    <28/11/2012 03h32min51s BRST> <Info> <EJB> <BEA-010227> <EJB Exception occurred during invocation from home or business: [email protected]340a3f3 threw exception: java.lang.OutOfMemoryError: Java heap space>
    <28/11/2012 03h32min51s BRST> <Notice> <Stdout> <BEA-000000> <ERROR,28 Nov 2012 03:32:51,518,[XELLERATE.SCHEDULER.TASK],Error while resubmitting the attestation process for delegation
    Thor.API.Exceptions.tcAPIException: EJB Exception: ; nested exception is:
    java.lang.OutOfMemoryError: Java heap space
    at Thor.API.Operations.AttestationOperationsClient.updateResponses(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at Thor.API.Base.SecurityInvocationHandler$1.run(Unknown Source)
    <28/11/2012 03h34min57s BRST> <Notice> <Stdout> <BEA-000000> <ERROR,28 Nov 2012 03:34:57,977,[XELLERATE.SCHEDULER.TASK],Error: Thor.API.Exceptions.AttestationProcessNotFoundException
    Thor.API.Exceptions.AttestationProcessNotFoundException
    at com.thortech.xl.ejb.beansimpl.AttestationOperationsBean.initiateAttestationProcess(Unknown Source)
    at com.thortech.xl.ejb.beans.AttestationOperationsSession.initiateAttestationProcess(Unknown Source)
    at com.thortech.xl.ejb.beans.AttestationOperations_yqqnsm_EOImpl.initiateAttestationProcess(AttestationOperations_yqqnsm_EOImpl.java:1033)
    at Thor.API.Operations.AttestationOperationsClient.initiateAttestationProcess(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

  • Automatically Running a Java Program

    I have a Java program which converts a text file to a XML file. I would like to be able to automatically run this program once every 8 hours or to have it run at set times. Has anybody done this before or does anybody know how to do this?

    Best bet is to get your operating system to do it. Cron job or windows scheduler, usually

  • Any way to automatically run discoverer reports based on an event ?

    I am using discoverer 3.1.36. I am trying to automate the
    running of discoverer reports - the objective is to
    automatically run a set of discoverer reports after a particular
    event.
    This is part of a very critical solution for a large bank.
    One of the solution that i am trying is to schedule the set of
    reports for a future date and then after the event has occurred,
    use a trigger to update the scheduled times of these reports.
    But by just updating the 'next run time' field in the
    eul_batch_reports table, there is no effect. The reports still
    run at the initially scheduled time.
    Can any one help me with this? or suggest any alternate
    solutions.
    Thanks in advance
    Sandeep

    you will need a javascript function something like - define in the page header or region header:
    <script type="text/javascript">
    function checkTheBox() {
      document.getElementById('YOURCHECKBOXNAME').checked='checked';
    </script>and then in the form element attributes of your textbox, have an onchange event:
    onChange=checkTheBox();

  • SP 2013 Running Workflow giving Error - Sorry Something went wrong

    Hi,
    We have publish workflow running on a document and we need to cancel/ terminate it.
    On the workflow Page we can see under the "Running Workflows" , the workflow is running. But when we click on that it gives the Something went wrong error message. As we are not able to goto the workflow status page on UI, we dont get option to
    End the workflow. 
    To Cancel the workflow we tried following things -
    1. Powershell command to get the workflow object and cancel it. But using the powershell command- $listItems.Workflows does not give the instance of this stuck workflow. If we start new workflow on that item , it will get added to the count but this stuck
    workflow does not come under its count. So we are not able to get its instance using powershell and cancel it.
    2. Using client side programming we tried directly passing the workflow instance name and terminate it but it gives the exception that "given key was not present in the dictionary"
    string workflowGuid = "91ee281b-3938-45a5-9bb2-8bd128bfa90c";
    var workflowServicesManager = new WorkflowServicesManager(clientContext, clientContext.Web);
    var workflowInstanceService = workflowServicesManager.GetWorkflowInstanceService();
    WorkflowInstance instance = workflowInstanceService.GetInstance(new Guid(workflowGuid));
    workflowInstanceService.SuspendWorkflow(instance);
    Please let us know how to get rid of this stuck workflows.
    prashant

    Hi Prashant,
    According to your description, my understanding is that you want to cancel the stuck workflows in SharePoint 2013.
    If the workflow is designed in SharePoint, I recommend to go to the Workflow Settings of the document library, click Remove, Block, or Restore a Workflow to remove the workflow with the stuck instances and then republish the workflow from Designer to SharePoint.
    Or you can use the code in the link below to cancel all the workflow instances to see if the issue still occurs:
    http://www.codeproject.com/Articles/679628/Easiest-Way-of-Cancelling-All-S
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Running Workflow step in Background & code inside doing Foreground proceing

    Hi all,
    I am extracting an attachment (file) from DMS (document management services: txn: CV02N) to the presentation server in Background Mode.  Again my Function Module is uploading the file in the forground Mode and at this point workflow is giving error about the presentation server. 
    Please can anyone help me if what am doing is wrong, and if yes then what would be the proper solution.
    Thanx in advance.  Points will be provided for sure
    Anand

    Hi Mike,
    Thank you so much for your help. 
    I will try to explain you the problem.
    The problem is I need to extract the contents of file attached to DMS, which is available only as a link, so using the BAPI_*CHECKOUTVIEW I need to download it on the presentation server so that file / attachment will be available on presentation server and then I can upload the file / attachment in SAP and will read its content in internal table.
    Now the problem is I am using above FM in a Workflow method.  Workflow is doing the processing via WF-BATCH which is a background user by default.  Now the question is
    1) How can i get the file / attachement from the link in the DMS in the background mode and again upload it in SAP in the background mode??  (I tried it but the only BAPI i found is given above, which is creating a local file based on the link in DMS)
                                                   OR
    2) How can I run / test the workflow in foreground mode(by default WF-BATCH (system) is running the workflow in background mode).  But then it is always advisable to run the workflow in background mode until an agent assignment (user interaction) is necessary.  And I guess whosoever will run workflow , it will run by system user only, which is background user.
                                                   OR
    Any other solution you can think of.

  • Can't use "Copy Finder Items" after "Run Workflow"

    Create a simple Automator workflow:
    Set just 1 action "Create Thumbnail Images" and save it. I called it "wf1.workflow".
    Now create the second workflow with 3 actions:
    "Get Specified Finder Items" action (choose an image file here).
    ->
    "Run Workflow" action (specify "wf1.workflow" as a workflow, select "Return workflow results", check "Wait for workflow to finish").
    ->
    "Copy Finder Items" (specify any location)
    Now run the workflow. Everytime I get an error.
    The log:
    Get Specified Finder Items completed;
    Run Workflow (wf1) completed;
    Copy Finder Items failed
    * -[NSAppleEventDescriptor count]: unrecognized selector sent to instance 0x113185d0
    The same workflow works fine in Tiger, so I think there is a bug in Leopard Automator.
    Am I right? Is there any workaround?

    I can confirm I got the same results for the workflow, just don't know why as of yet. And then I somehow got it to work.
    I checked the results for each action and they didn't seem unusual. The results of "Get Specified Finder Items" is a single parenthesized text string representing the file's path. The results of "Copy Finder Items" is an alias, but that should be okay.
    So, deleted the thumbnail from the first run, and then ran the workflow again. It got stuck on "Run Workflow" and hung for a while. So I stopped it and removed "Run Workflow", and then added it in again. Presto! It worked, sort of. It didn't copy the thumbnail, instead it copied the original file. I'd forgotten to reset it to "Return workflow results". So, it seems to be something to do with returning the workflow results instead of the action input.
    I'm going to do some more testing.

  • Automatically run applications on start up

    Hello all:
    Does anyone know how to automatically run certain applications such as Mail on start up? I don't think this is an automater function but not completely sure.
    Thanks in advance!

    Wow, that was really too easy. Cannot believe I didn't figure that out as I have right clicked on dock icons many times before and never noticed that. Thanks so much!

  • How do you automatically run software update using ARD?

    Is there a way to automate running software update and downloading all updates using ARD? My current option is to log into each machine and do it manually. (I am also using a OSX server 10.6 if that helps.)
    Thanks

    Use the the Send UNIX Command option. There's a template in the Miscellaneous section to have the workstations download and install updates; run it as the root user in the Send Command as field so you don't have to worry about a user being logged into each workstation. You can set the command as a task to run on a schedule if you wish.
    Since each workstation will download each update, it's most efficient if you can run a Software Update Server and point your workstations to that instead of directly to Apple. Then you don't have multiple downloads taking up your Internet bandwidth. If you have on a few workstations and/or a really big pipe to the Internet, that may not be a concern for you.
    Regards.

  • Automatic approval workflow does not work anymore

    Hi,
    Our automatic approval workflows configured via standard business configuration sets (process controlled) do not work anymore. They did work previously.
    After changing the BUS objects 'automatic approval' workflow into the 1-step manager approval workflow it does work.
    - The 'automatic approval' workflow does not seem to generate a workitem, the bbp_pd 'workflow' part is empty. In addition previously approved documents via 'automatic approval' do not contain workitem details via bbp_pd either anymore.
    - We applied a new SP (SP07) not that long ago.
    - These documents go into status: 'awaiting approval', the documents 'approval' details tell us the following:
    001 Automatic Approval Valid (Can be Started) Open (No Decision Made) SYSTEM system
    However the system does not execute the task, how come? What normally ensures the system executes these 'automatic approval' tasks (report?)?
    Any input is very much appreciated.
    Kind regards,
    Tim

    Hi Balaji,
    In SRM 7.0,
    Our automatic approval workflows configured via standard business configuration sets (process controlled) do not work anymore. They did work previously.
    - The 'automatic approval' workflow does not seem to generate a workitem, the bbp_pd 'workflow' part is empty. In addition previously approved documents via 'automatic approval' do not contain workitem details via bbp_pd either anymore.
    - - These documents go into status: 'awaiting approval', the documents 'approval' details tell us the following:
    001 Automatic Approval Valid (Can be Started) Open (No Decision Made) SYSTEM system
    However the system does not execute the task, how come? What normally ensures the system executes these 'automatic approval' tasks (report?)?
    Any input is very much appreciated.
    Regards,
    Shears

  • "Automatic running highlight with cursor"function exists on Crystal report?

    Dear sir,
    Is there "Automatic running highlight with cursor" function in Crystal report ?
    Thanks a lot in advance for your advice!
    Best regards,
    Lai Oberdorf

    Dear Ingo,
    thanks for your help always.
    Automatic highlight with the cursor, is like the report on the following link :
    http://www.ibm.com/annualreport/2007/cfs_cf.shtml
    The highlignt is automatically showed up with the mouse cursor places on the report.
    Thanks a lot !
    Best regards from Walldorf:-)
    Lai

Maybe you are looking for

  • GR non-valuated box automatically set in backend PO

    Hi ... I am doing extended classic scenario with SRM 5.0 and ECC 6.0 system, When I create a purchase order with multiple account assignments in SRM then the "GR non-valuated" box is set automatically in backend PO when the PO is replicated in SAP. F

  • No DTD validation in SAX Parser

    I have a xml document which has a DocTYpe spec in it with a DTD reference, but the dtd file itself is not there. We tried to parsing it in Non validating mode , but it throws a fileNot Found Exception looking for the DTD file. we tried it on the SAXS

  • Invalid characters when consuming web service

    Morning all, I am using Apache Axis 1.3 (yes, slightly old version) to consume a Microsoft SharePoint web service. The problem I am finding is that the returned XML contains an invalid XML character which is causing Axis to throw an exception. I have

  • Time Machine error 13 sparsebundle?

    Hello - my Time Machine wireless backup was working flawlessly for months from my Seagate GoFlex Home wireless hard drive, backing up my iMac and my MacBook. Now suddenly I'm getting the following message - but only on my MacBook: "Time Machine Error

  • Database Error code: 3 indesign CC

    What are the causes of "Database Error code: 3" when working in indesign CC??