AppleScript to skip Automator workflow step - when no files are provided

My current Automator workflow:
Get Specified Finder Items (path to folder auto-populating with images from a camera)
Get Folder Contents
Sort Finder Items - by Creation Date in descending order (gets oldest item first)
Limit Number of Items - Limit to First 1 items
Move Finder Items (If no items are passed to this step skip it)
Loop - Automatically; Stop after 20 minutes; Use the original input
What I am trying to accomplish:
I'm trying to write an AppleScript to skip the "Move Finder Items action" when it is not supplied with any files (from the previous workflow step), moving on to the next step which is a loop to begin my workflow again.
Big picture:
I have a workflow, where I am moving files from one folder to another folder (one at a time). When the input folder is empty, Automator comes back with "No item references were passed to the Move Finder Items action (-50)"; which it should - because it is not passed any files. I would like to ignore this error (or skip this step) and continue with the workflow if no files are provided to the "Move Finder Items action". I currently have an AppleScript (see below) that stops the workflow when this error occurs, but I would like to have this flow continue, not stop.
AppleScript:
on run {input, parameters}
          if input is {} then error number -128 -- 'user cancelled'
          return input
end run
Please help me create a script to skip this step, or to restart the Automator workflow when no files are passed to  the "Move Finder Items action".

I'm not aware of a way to do this with a workflow saved as an application, but Automator is scriptable, so you can manipulate a workflow document.  For an example, build the follwing workflow:
Ask for Text (just to get some input)
Run AppleScript:
on run {input, parameters}
  set currentAction to index of current action of front workflow -- the most recent completed action
  if input is {} then -- if no input then disable the following action
    tell Automator action index (currentAction + 2) of front workflow to set enabled to false
  else -- enable it
    tell Automator action index (currentAction + 2) of front workflow to set enabled to true
  end if
  return input
end run
Ask for Confirmation (just to show a dialog when enabled - this action will be enabled/disabled based on the text input)
Loop
You can also use action names, but I think it is less confusing to use indexes, since names can be edited and an action can be used more than once.

Similar Messages

  • Metagen is skipped sometimes complaining because all output files are up-to-date with respect to the input files

    Hi,
    In one of my dll (VS2010), the process Skipping target "MetaGen" because all output files are up-to-date with respect to the input files.
    it is at  random.  I have checked the time stamps of the dll and metagen.write.1.tlog both having the time stamp on the failed build.  But all files in release folder did not have the same time.  They are one hour earlier than the dll
    and the  metagen.write.1.tlog.
    On the good build  it said the input file is is newer than output file ".\Release\\metagen.write.1.tlog" and allfiles in the release folder have same time stamp.
    Any clue to solve this ?
    Regards,

    Hi,
    Based on your post, I am not very clear about your issue. I feel your issue is out of support range of VS General Question forum which mainly discusses
    the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
     Could you please provide us more information so that we resolve your issue better?
    What type of project are you working with? C++ MFC project?
    How was the
    metagen.write.1.tlog file generated in your project?
    What error messages did you get?
    What is the 'input file'?
    If possible, please provide us a sample project to reproduce your issue.
    Thanks,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • File corruption on SDCard when multiple files are being written from WinCE 6.0R3

    We currently have file corruption problems which we have been able to reproduce on our system which uses WinCE 6.0R3. We have an SDCard in our system which is mounted as the root FS.  When multiple files are being written to the file system we occasionally
    see file corruption with data destined from one file, ending up in another file, or in another location in the same file.  We have already written test SW that we have been able to use to reproduce the problem, and have worked with the SDCard vendor to
    check that the memory controller on the card is not the source of the problems.
    We know that the data we send to WriteFile() is correct, and that the data which eventually gets sent through the SDCard driver to the SD card is already corrupted.
    We believe that the problem is somewhere in the microsoft private sources between the high level filesystem API calls and the low level device calls that get the data onto the HW.
    We have confirmed that the cards that get corrupted are all good and this is not a case ofpoor quality flash memory in the cards. The same cards that fail under WinCE 6.0R3 never fail under the same types of testing on Windows, Mac OX, or linux.  We
    can hammer the cards with single files writes over and over, but as soon as multiple threads are writing multiple files it is only a matter of time before a corruption occurs.
    One of the big problems is that we are using the sqlcompact DB for storing some data and this DB uses a cache which get's flushed on it's own schedule. Often the DB gets corrupted because other files are being written when the DB decides to flush.
    So we can reproduce the error (with enough time), and we know that data into the windows CE stack of code is good, but it comes out to the SDcard driver corrupted.  We have tried to minimize writes to the file system, but so far we have not found a
    way to make sure only one file can be written at once. Is there a setting or an API call that we can make to force the OS into only allowing one file write at a time, or a way of seeing how the multiple files are managed in the private sources?
    Thanks
    Peter

    All QFE's have been applied we are building the image so we have some control.
    I have build an image which used the debug DLL's of the FATFS and I have enabled all of the DebugZones.  The problem is still happening. From the timings in the debug logs and the timestamps in the data which corrupts the test file I have been able
    to see that the file is corrupted AFTER the write is complete. Or at least that's how it seems.
    We finished writing the file and closed the handle. Then more data is written to other files. When we get around to verifying the file it now contains data from the files that were subsequently written.
    What I think I need to do is figure out in detail how the two files were "laid down" onto the SDCard.  If the system used the same cluster to write the 2 files then that would explain the issue.

  • How do I set up InDesign cross-document Text Anchor Hyperlinks so that when the files are moved, they remain active?

    I’m combining several InDesign files into one PDF, with several hundred text links across the different sections, as well as within each. The cross-document (section) Text Anchor Hyperlinks work fine in my workspace - but when I change the file location, they are no longer active (other links, bookmarks remain intact).
    How do I set up InDesign cross-document Text Anchor Hyperlinks so that when the files are moved, they remain active? 

    They seem to be a lot of extra work, and I don't see what the additional benefit is. I have several hundred links to do. I would appreciate learning what the benefit is, as I don't mind the extra effort if it will deliver the desired results.

  • How to reference a set of Flash-protected f4v files in a manifest when the files are on Cloudfront?

    I have: a self-created AMS 5.0 running on Amazon.
    Using latest OSMF player.
    I'm Using EZDRM for Flash Access protection.
    I have a dynamic bitrate f4m created with the F4F packager. It contains data for three bitrates.
    I know that my S3 bucket and Cloudfront distribution are generally working because I can play a set of non-drm files using a RTMP-style manifest
    I am successfully  issuing the license and playing the videos using that manifest when the files are located on the AMS itself.
    The working call to the manifest is this: http://media.blah.com/vod/BlahBlah/Blah.f4m
    I think the relevant portion of the manifest is this:
                      streamId="Blah-1000" 
    url="Blah-1000"
    bitrate="1000"
    bootstrapInfoId="bootstrap4543"
    drmAdditionalHeaderId="drmMetadata8495"
    I think the correct way to approach this it to leave the manifest on AMS and manually change the url in the manifest for each video file
    I've tried changing the url in the manifest to point to the cloudfront location
    http://blahblah.cloudfront.net/cfx/st/mp4:Blah
    But I simply get back: "We are unable to connect to the content you requested."
    Your guidance greatly appreciated.
    Ken Florian

    Hi,
    I created a project (JDeveloper) with local xsd-files and tried to delete and recreate them in the structure pane with references to a version on the application server. After reopening the project I deployed it successfully to the bpel server. The process is working fine, but in the structure pane there is no information about any of the xsds anymore and the payload in the variables there is an exception (problem building schema).
    How does bpel know where to look for the xsd-files and how does the mapping still work?
    This cannot be the way to do it correctly. Do I have a chance to rework an existing project or do I have to rebuild it from scratch in order to have all the references right?
    Thanks for any clue.
    Bette

  • Applescript to skip Automator step

    I'm trying to create a workflow to sync two folder with some option, such as "Sync even the icon" or "Sync remote folders".
    What I need to do is put an Applescript on the top of the workflow to ask these options and then if, for example, the option "Sync the icon" is enabled, the applescript must run only determined actions that I specify.
    My current Automator workflow:
    - Ask for finder items
    - Set value of variable 1
    - Ask for finder items
    - Set value of variable 2
    - Ask for confirmation
    - Get value of variable 1
    - Get value of variable 2
    - Run script shell
    What I want to do:
    - Run Applescript to ask options and then depending on the option chosen run determined actions
    - Ask for finder items
    - Set value of variable 1
    - Ask for finder items
    - Set value of variable 2
    - Ask for confirmation
    - Get value of variable 1
    - Get value of variable 2
    - Run script shell - this if the options chosen are "Sync the icon" and "Sync local folders"
    - Run script shell - this if the options chosen are "Don't sync the icon" and "Sync local folders"
    - Run script shell - this if the options chosen are "Sync the icon" and "Sync remote folders"
    - Run script shell - this if the options chosen are "Don't sync the icon" and "Sync remote folder"
    If isn't possible to do this, is it possible to convert actions to applescript?

    I don't understand what 'sync the icon' means but that may be irrelevant?
    Personally I'd start by keeping it simple – split it into 2 (or even 4) workflows…
    Sync local folders (icons)
    Sync local folders (no icons)
    Sync remote folders (icons)
    Sync remote folder (no icons)
    The remote & local version could be a single workflow with a choice of 'icon' or 'no icons'.
    That way you can keep the logic to a minimum inside Automator or Applescript.
    If it must all be inside one Application/workflow you could try something inside a "Run Applescript" action…
    on run {input, parameters}
      set choice to choose from list {"Sync local folders (icons)", "Sync local folders (no icons)", "Sync remote folders (icons)", "Sync remote folder (no icons)"}
      return choice
    end run
    Then you need to decide if an Applescript action or a shell script action is handling all the logic…
    For example a "Run shell script" action will speak the you the result of the Applescript choice via…
    say "$@"
    It gets complex as you start handling all the variables. I'm unsure if you would be better with an Applescript or even a shell script - it really depends on what your overall aim is and how the sync is being performed. Are you making this for others to use?
    P.S. You may want to explain what exactly you are syncing - it may be easier (and more logical to manage) by using an Application like Chronosync which can save 'sync jobs'.

  • Applescript .app stopping Automator workflow

    Hi. I'm still a novice at Applescript, but getting better with Automator, and trying to combine the two to get the result I need, and I'm almost there except this one little glitch:
    I've got an Automator workflow that involves an Applescript application (.app) which for some unknown reason halts the rest of the workflow despite it seemingly working right. The Applescript does little more than quit a specific application, which it does. But when I run the workflow from Automator I get the error: "Connection is Invalid"
    Any help here would be greatly appreciated - is there something I should do differently with the script? Or should I handle this differently in Automator?
    Thanks!
    Below is the text of the script:
    tell application "OmniOutliner"
    tell every document
    try
    save
    on error errormessage number errornumber
    display dialog errormessage buttons {"OK"} default button 1
    end try
    end tell
    end tell
    quit application "OmniOutliner"

    First,
    '... is there something I should do differently with the script? ...' - Based only on the material provided - the AppleScript code (the 'save' line) assumes no 'Untitled' 'OmniOutliner' windows, otherwise the drop down 'Save' sheet will result with a 'Script Editor' error message of -> 'AppleScript Error. OmniOutliner Professional got an error: AppleEvent timed out.'. This error, or something similar, may be what is generating the 'Automator' 'Connection is Invalid' error message.
    Try the code below, in place of your AppleScript source code - with any needed modifications (such as 'OmniOutliner' in place of 'OmniOutliner Professional').
    -- Code starts here --
    tell application "OmniOutliner Professional"
    close (every document whose (name begins with "Untitled" and canUndo is false)) saving no -- Close any newly created documents, which have not been modified.
    set {tDocuments, dNames} to {documents, name of documents} -- Create lists of opened documents and the documents titles (names).
    repeat with i from 1 to (count tDocuments) -- Cycle through the tDocuments list.
    if ((item i of dNames) contains "Untitled") then -- If a newly created document, and recently modified - then, save it with a date stamped name, to the 'Desktop'..
    save (item i of tDocuments) in ((((path to desktop folder from user domain) as string) & (do shell script "date +%Y%m%d%H%M%SOmniOutliner.oo3")))
    else if ((canUndo of (item i of tDocuments)) is true) then
    save (item i of tDocuments) -- If a previously created document, and recently modified.
    end if
    end repeat
    end tell
    quit application "OmniOutliner Professional" -- Any opened but not modified documents, or any recently saved documents - will be closed here.
    -- Code ends here --
    Note: No detailed checking is provided, above, for files that contained 'Untitled' within the filenames, and were then opened in 'OmniOutliner Professional'; as opposed to, any newly created document - which will contain 'Untitled' as its name or the beginning of its name. Such is left as an exercise for the student.
    Second,
    '... should I handle this differently in Automator?' - Please provide the 'Automator' workflow Actions.

  • Some CGM graphics do not appear when FrameMaker files are converted to PDF

    CGM files are exported from ISO (Arbortext Isodraw 7.0 CadProcess) files. Then they are imported into Adobe FrameMaker 7.2, where all elements of the illustration are visible and can be printed. The FrameMaker FM file is converted to a PDF file using the Adobe PDF converter function of Frame. When the PDF file is opened by Adobe Acrobat 8,0 Professional, some, but not all of the illustrations in the file exhibit this problem (The callouts and other text may appear, but the lines, curves, etc. do not). The illustration prints the same way it appears on the screen. When exporting the ISO file as a CGM, the following selections are made.
    When importing file into Frame, "Import by Reference" is selected.
    When creating PDF in Frame, the following selections are made.
    Any Suggestions would be greatly appreciated. Thanks very much.

    Thanks, Michael.
    I will give it a try.
    Avox Systems Web Site: http://www.avoxsys.com
    AVOX SYSTEMS
    AIRCRAFT SYSTEMS
    Rick Barusic
    Senior Technical Writer
    225 Erie Street - Lancaster, NY 14086 - USA
    Tel: 716-686-1706
    [email protected]
    http://www.zodiacaerospace.com
    The information transmitted is intended only for the person or entity to
    which it is addressed and may contain confidential and/or privileged
    material. Any review, retransmission, dissemination, or other use of or
    taking any action in reliance upon this information by persons or entities
    other than the intended recipient is prohibited. If you received this in
    error, please contact the sender and delete the material from any
    computer.
    From:   MichaelKazlow <[email protected]>
    To:     rick barusic <[email protected]>
    Date:   11/24/2010 10:32 PM
    Subject:        Some CGM graphics do not appear when
    FrameMakerfiles are converted to PDF
    First you should update to the latest version of Acrobat 8, since you say
    you are running Acrobat 8, you should update to 8.2.5. Update your
    FrameMaker to 7.2p158. Those two steps might do the trick. If that fails
    try using a different settings file. Perhaps High Quality or Press
    Quality. I would never use Standard for anything where fidelity is
    important.

  • Can I get a notice when the files are downloaded by the recipient? And other issues...

    The older SendNow app notifies me by email whenever I have successfully sent a file, and another email when the recipient has downloaded the file.
    With Adobe Send, I get only an email notice that the recipient has "viewed my shared files" which is kind of vague. I would like to know for certain that the client has actually downloaded the file. I know that I can log into the Acrobat site and "View Full Activity" for each file transfer, but it would be great to get an email notice or a text message.
    I hate to say it, but I still feel like we have taken a step backwards with this app, compared to SendNow. It is nice that the recipient can preview the file before downloading it. That seems to be the only benefit so far that I can see. But not having a memorized email address book can make the process very tedious.
    Another minor frustration: Whenever I log in to the Acrobat or SendNow site, there is a box that asks if I want to 'Stay signed in'. I click it every time since this is my own private computer, but I always have to log in anyway.
    When the Adobe Send app first launched, I had problems with it failing. It was VERY frustrating because the status bar would seem normal until the very end before kicking out a fail notice. It happened mostly with larger files or with multiple files. So, I would wait a long time only to have to do it all over again. the entire process would fail.  For example, if I sent six large files, and only one of the files was problematic, the entire transaction failed. The app would not identify the specific failed file. Why couldn't the app allow the good files to go through? I have no idea if this is resolved, but because of this, I have only used the SendNow app.
    well, is anyone there??

    Is working on FCE projects while all the video files are saved on an external drive a bad idea?
    Not at all. This is the correct way to work with a laptop.

  • When .ai files are actually PDFs

    So, in an earlier thread today, AI or EPS?, Wade questioned whether .AI files are really PDFs.
    I did a survey just now with Illustrator CS5 (15.0.2) on Mac OSX, on a document with a single letter 'p' (400pt Myriad Pro Regular). Saving in all current and historical Illustrator formats:
    Bytes
    Format
    "file" output
    226448
    PDF
    PDF document, version 1.5
    927086
    CS5.ai
    PDF document, version 1.5
    918678
    CS4.ai
    PDF document, version 1.5
    924026
    CS3.ai
    PDF document, version 1.5
    924062
    CS2.ai
    PDF document, version 1.4
    1267139
    CS.ai
    PDF document, version 1.4
    1196072
    10.ai
    PDF document, version 1.4
    1102797
    9.ai
    PDF document, version 1.4
    249039
    8.ai
    PostScript document text conforming DSC level 3.0
    7179
    3.ai
    PostScript document text conforming DSC level 3.0
    Now, I realize you might not trust the "file" program... If you're not familiar with it, according to the manpage:
    file tests each argument in an attempt to classify it.  There are three sets of tests, performed in this order:  filesystem tests, magic tests, and language tests.  The first test that succeeds causes the file type to be printed.
    But it just does some crude (and not-so-crude) pattern matching.
    You can also run some reports in Acrobat Pro. For instance, running "Report PDF Syntax Issues" produces two identical reports, except the AI version has a Color space section (different uuids, diffrent embedded subset font names, etc.). That's not very helpful.
    Browsing the PDF contents does show some more information. Indeed, half of the file size difference is color space information, though I'm not sure what the other half is:
    There are other subtle differences.
    Convinced yet?

    No one's harmed as we all know this since forever.
    It is wel documented on the forum.
    By not saving it with the pdf option check reduces the size a great deal many users use it to save master files and then do a save as with the option turned on when they place it in another application.
    In case you are not familiar with this option turned off and printed to a postscript printer the file will print properly even if it does not display the right way.
    At least that is my understanding.

  • Out of memory when big files are being sent to N80...

    i downloaded a few big mp3 files (15-20mb) onto my 128 card i got with the phone, as soon as my new 2gb phone came, i didnt have a reader for my pc and my wife said she wanted these songs on her S.E.810i. i sent them over to her using bluetooth (with no probs whatsoever) in the hope i could send them back to my phone with my new 2gb card in. when i try to send them back from the 810i with bluetooth, i get out of memory message but i have next to nothing on phone mem - no vid/images/sound etc. can anyone tell me if i would be right in saying that when i download from my home network the files are temp stored on mem card until you confirm where u want to save whereas bluetooth tries to store on phone mem temporarily first? hope u got all that! if this is the case, is there anyway i can change this? if anyone is still with me, and knows what i am talking about, please enlighten me!! its driving me mad!
    thanks

    1. All messages will be stored/moved to the memory card.
    2. I doubt it. The phone will still save files received via bluetooth in a messaging folder. If this folder is stored on the phone memory there will never be enough space to receive really big files. dmz

  • Screen Goes Dark when No files Are Open

    Hi,
    Since I installed the CS 6, I seem to have a problem with my display going dark whenever Illustrator CS 6 doesn't have opened files, i.e., the application runs, no files are open, and my whole screen's brigthness goes down. It only happens with Illustrator CS 6. When I open a file, the screen goes back to normal. Has anyone had that problem?

    Unfortunately attempts to take a screenshot to show you have resulted in the interface look as it if were at full brigthness so I can't show you (well unless I edit the screenshot after). But basically the whole screen brightness goes dark until I open a new file. And it only happens with Illustrator CS6. I still haven't been able to solve the issue and I can't find anything on the net about that.

  • How to transfer music from iPhone to iPhone when music files are not on computer?

    Dear all,
    I'm having trouble trying to transfer music from one iPhone to another (iPhone 4 to 5s if it matters), when the music files are NOT on my Macbook Pro, which as far as I understand prevents me from transferring music using the iTunes library sync method.
    Is there a way to do this? Like transferring the files to the Macbook Pro first?
    Many thanks in advance.

    Choose transfer purchases in itunes

  • Applescript works in Automator, but not when app is opened - running all if statements at once?

    Good evening,
    I am new to applescript and have a newbie question regarding the following code. I am making a simple automator program to pull songs from iTunes to practice dancing to. I've started the program with a script that lets the user choose which dances (s)he wants to be played. Then I use applescript to run if statements for each dance, checking whether the dance was selected (and is therefore in "danceList"). If so, I call a separate app to handle finding and playing that dance. The whole thing runs perfectly once opened in automator.
    The problem is when I try to open the app for the first time, whether in finder or in automator -- it calls every single one of the if-statement applications, all at once, before anything else has happened, and thus crashes itself. I have no idea why. I have searched various help sites, tried multiple variations of the if statement code (waltz is an example, below) and making the sub-applications into workflows, but that didn't help.
    Any advice or pointers in the right direction/to appropriate resources would be greatly appreciated.
    Here is a snippet from the relevant code: (didn't include it all, it's the same thing with more if statements)
    on run {danceList}
              if danceList is not null then
                        if danceList contains "Waltz" then
                                       tell application "waltz"
                                                      run
                                       end tell
                                       delay 110
                        else
                                       tell application "waltz"
                                                      quit
                                       end tell
                        end if
                        if danceList contains "Tango" then
                                       tell application "tango"
                                                      run
                                       end tell
                                       delay 110
                        end if
                        if danceList contains "Viennese Waltz" then
                                       tell application "viennese"
                                                      run
                                       end tell
                                       delay 110
                        end if
    ... and so forth ...
        end if
        return danceList
    end run

    Ok, let me try to do a better job explaining.
    I am making this app to simulate the rounds used in competitive ballroom dancing. It lets the user select the dances they will participate in, and then, for each dance, the program reads out the dance title, chooses all songs in iTunes with that genre, selects one at random, starts playing it, waits ninety seconds, and then stops the music. Then a twenty second pause before the next dance. I have made eleven apps for this; one is the main app that calls the others; the others are identical and handle the individual dances.
    Here is all the code I have:
    1. Ask for confirmation - dialogue box explaining app
    2. Get specified text - list of all dances, passed to first section of applescript
    3. First section of script - found on internet, altered for multiple selection; lets user choose multiple dances from a list (code is below pic)
    on run {input, parameters}
    choose item(s) from text
    input: text - items are delimited by paragraphs (returns/newlines)
    output: a list of paragraphs selected
              set output to {}
              set NameList to {}
              set NameList to paragraphs of (input as text)
      activate me
              set TheChoice to (choose from list NameList with title "Choose Dances" with empty selection allowed and multiple selections allowed)
              if TheChoice is false then
                        error number -128 -- cancel
              else
                        set output to TheChoice
              end if
              return the output -- pass the result to the next action
    end run
    4. Store value of variable as "danceList" - probably unnecessary but gave it a name
    5. Second section of applescript - what's been discussed previously, here's the full code:
    on run {danceList}
              if danceList is not "" then
                        if danceList contains "Waltz" then
                                  tell application "waltz"
                                            run
                                  end tell
                                  delay 110
                        end if
                        if danceList contains "Tango" then
                                  tell application "tango"
                                            run
                                  end tell
                                  delay 110
                        end if
                        if danceList contains "Viennese Waltz" then
                                  tell application "viennese"
                                            run
                                  end tell
                                  delay 110
                        end if
                        if danceList contains "Foxtrot" then
                                  tell application "foxtrot"
                                            run
                                  end tell
                                  delay 110
                        end if
                        if danceList contains "Quickstep" then
                                  tell application "quickstep"
                                            run
                                  end tell
                                  delay 110
                        end if
                        if danceList contains "Samba" then
                                  tell application "samba"
                                            run
                                  end tell
                                  delay 110
                        end if
                        if danceList contains "Cha cha" then
                                  tell application "chacha"
                                            run
                                  end tell
                                  delay 110
                        end if
                        if danceList contains "Rumba" then
                                  tell application "rumba"
                                            run
                                  end tell
                                  delay 110
                        end if
                        if danceList contains "Paso Doble" then
                                  tell application "paso"
                                            run
                                  end tell
                                  delay 110
                        end if
                        if danceList contains "Jive" then
                                  tell application "jive"
                                            run
                                  end tell
                                  delay 110
                        end if
              end if
              return danceList
    end run
    Here is the code for the waltz app. All the other dance apps are identical; they just search for different terms and have a different introduction spoken.
    1. Get specified text - "Next Round is the Waltz, etc."
    2. Speak text - reads text out loud so people know what's next
    3. Find iTunes tracks where genre is "Waltz" or "waltz"
    4. select these tracks
    5. store all these in variable "tracks"
    6. applescript to pick a random track from "tracks":
    on run {tracks}
              set maxNumber to count of tracks
              set randy to random number from 1 to maxNumber
              set chosenTrack to item randy of tracks
              return chosenTrack
    end run
    7. 3 second pause between speech and music
    8. Start playing the chosen track
    9. 90 second wait while track plays
    10. pause itunes (stop music)
    11. end app
    Again, my concern here is why the program runs fine once it has already been opened in automator (say second or third time running it there) but when run from finder, or first opened in automator, it calls all the dance apps at once. Then they give error messages because the speech section is first, and this can't be done simultaneously:
    Also, not sure if this is relevant, but I have a spinning gear in the corner of my mac that I believe is automator launcher, and it's showing all the apps as running even after I've ok'd their error messages and they have disappeared from the dock. I can exit waltz and danceApp, which are the two actually running, but the others won't stop until I've ended automator launcher in activity monitor.
    Hopefully this is more helpful. Thanks again.

  • Need help with an automator workflow to convert AAC files to MP3

    Hi
    I am trying to work out a way to automatically convert voice memos which I dictate on my iPhone to MP3 files when they are added to my iTunes library during a sync. Then I need the converted files to be in a specific folder so that they will trigger an auto-transcription program that I have running.
    From my limited knowledge of automating processes on my Mac it would seem that I need to design a workflow or a folder action in Automator. Probably a folder action would be best, as I could attach it to the 'Voice Memos' folder in my iTunes Music Folder. The converted MP3 files would be saved in the same folder and would then be recognised by the transcription program. I have tried to design a workflow/folder action using Doug's iTunes automator actions as follows, but it is not working as I would like. The workflow is as follows:
    Folder Action/Get Folder Contents/Choose encoder (MP3)/Convert Tracks/Choose encoder (apple lossless)/Restore Encoder.
    The folder action is triggered when I add AAC files to the folder I have attached the action to, but then I get an error message stating that 'no tracks have been sent to this action'.
    i would be grateful for any help to get this working using the automator method or another method
    thanks
    nick

    Start with http://discussions.apple.com/thread.jspa?threadID=2039384 and Introduction to Automator tutorial at http://automator.us/leopard/video/index.html

Maybe you are looking for

  • Problems placing ai and eps files into PhotoShop CS3 on a Mac

    When I place any ai or eps file into PhotoShop using File > Place, the images are pixelated. It does not matter if the PhotoShop file size is 72 dpi or 300 dpi, the end result is still the same. Placing images used to work a few days ago, and now all

  • My keynote widget in iBooks Author doesn´t work.

    Hi there! I can´t previsualize in my iPad a keynote widget, made for a book in iBooks Author... it simply doesn´t appear... does anybody know if I´m missing a step?? I drag the file in a keynote and also in HTML formats and it just doesn´t work. Than

  • Help with HTML View

    Hi, I need help building VC Logic to display 1 of 4 reports (HTTP Links) in an HTML View.  Depending on the value of a incoming data field I want to feed the HTML View a different web page link.  It looks like you can't nest the logic of an if statem

  • "Execute Explain Plan" button disabled

    I'm using the 1.1.3 version of SQL Developer included in the Oracle 11g distribution for Windows. After connecting to a database and executing a query, I am unable to view its execution plan because the explain plan button is greyed-out. The connecte

  • Project is unviewable

    I developed an Access 2010 app for a client a few months ago, which is stored on a network drive. Each user has a downloaded copy on their C-drive. The app is an accdb and is not password-protected. Their IT guy just downloaded a copy for a new user