Automator Help: Create simple workflow to automate opening random playlist?

I'm fairly inexperienced with Automator. I've figured out how to create some workflows by having it record my actions but this is somewhat limiting. I'm hoping to accomplish something slightly more complex and I've been unable to find an existing thread on this (I may be searching for the wrong terms).
I'm hoping someone here can help me to create an Automator workflow that will:
1.) At a specific time on a specific day of the week (i.e. every Wednesday at 4pm)
2.) Open a randomly selected file from a specified folder (i.e. go to folder "Playlists" and pick one of the 15 .m3u playlists available at random and open it).
Is this possible with Automator? I've read other posts that seem to suggest something like this is possible but I'm having trouble finding the right building blocks in Automator to make it happen. I'm hoping it's fairly simple because I certainly don't want to ask too much of anyone here. Any help would be greatly appreciated but please don't go out of your way if this is a complex or demanding request.
My goal is to create a virtual TV channel of sorts. I'd create specialized playlists (i.e. Wednesdays might be sitcom night whereas Thursdays are Sci-Fi night) and my Mac Mini would automatically open one of the multiple "sitcom" playlists (at random) every Wednesday just before I would get home. I love my Mac Mini and Front Row (and Boxee as of late) but sometimes I would like for my computer to be automated so it feels more like a regular TV channel (but one with programming I'm guaranteed to like).
Thanks everyone. I really appreciate your time and input.

Do you want to randomly select the playlists, or the items within a particular playlist, or both? Making an iCal alarm plug-in with something like the following will play a random item in the specified playlist:
1) Get Specified iTunes Items {add your playlist}
2) Play iTunes Playlist {select shuffle}

Similar Messages

  • How do I create a workflow to close open programs and then turn off?

    I want to create a workflow where any open programs will be closed and then my Mac will turn itself off. How do I do this?
    Cheers.

    I don't use Automator, but the following Applescript will do it:
    set excludedones to {"loginwindow", "Dock", "SystemUIServer", "MirrorAgent", "UniversalAccess", "iCalAlarmScheduler", "System Events"}
    tell application "Finder"
    set quitlist to the name of every application process whose file type is "APPL"
    end tell
    repeat with i from 1 to count of quitlist
    set aProcess to item i of quitlist
    if aProcess is not in excludedones then
    try
    tell application aProcess to quit
    end try
    end if
    end repeat
    tell application "Finder"
    shut down
    end tell
    Actually the last three lines by themselves would probably do it. Of course if any of the applications have open unsaved documents then you will get the usual dialog about do you want to save them.

  • Word document created by Workflows do not open

    We are using Sharepoint Online (2013 version) and sharepoint Designer 2013
    We have a requirement by which we would like to update a 'Word template' with the metadata information from a Document Set.  A word document is created after the workflow executes, but the
    created document is corrupt.
    It does not open in Word Web App and when I open it using Word, I get errors.
    I have Word 2010 installed on my machine. Can this be some kind of incompatibility?
    I was going through some threads in this forum and noticed that this problem has been reported before also.
    Is this some kind of a known issue when creating documents using Designer workflows?
    What will be the alternate solution to meet this requirement
     Any suggestions in this regard would be helpful
    Regards,
    Maneesh Agrawal

    Hi,
    According to your post, my understanding is that the word documents created by workflow could not open.
    Did the issue occur in other libraries? You can create a new workflow, then check whether it works.
    You can also use the Copy item action for a workaround.
     Here is what you can try.
    1. Have your template in a folder that is hidden from your views.
    2. Copy the template file with a name of your choice using "Copy list item" action
    3. Use "Update List Item" action to change the properties.
    For more information:
    http://community.office365.com/en-us/forums/154/t/155334.aspx
    As this is the forum for the SharePoint server, I’m not familiar with the SharePoint online.
    For this issue, you can also post your question to the forum for SharePoint Online:
    http://community.office365.com/en-us/forums/154.aspx.
    More experts will assist you, then you will get more information relation to SharePoint Online.
    Thank you for your understanding and support
    Thanks & Regards,
    Jason 
    Jason Guo
    TechNet Community Support

  • Help me, please! skype automatically opens up and ...

    I just downloaded skype for my laptop (MSI A6200) today to do a youtube lets play. However, some really weird things happened. For one, my mozilla firefox has msi open up before my homepage whenever I access it. Another thing is that on internet explorer, I have bing. (this doesnt affect me because I rarely use internet explorer). Also, whenever I turn on my laptop skype automatically opens up and I cannot close it. Skype is a really great way to chat with friends, but its affects are very VERY annoying. Please help me! (Like, info on how to get rid of all these things). Also I am running windows 7.
    [Mod Edit to add info to Title]

    thnx for all the "replies". you guys are VERY VERY VERY helpful! 11/10 best staff ever.

  • How can I get Automator to create a workflow for combining .jpgs into pdf?

    I have a large folder with many subfolders, and each subfolder has many subfolders. Those last mentioned subfolders have many .jpgs inside which I want to make them into a pdf. The question is, how can I get automator to do this for me? I tried using the help but it only made things even more confusing, it didn't help at all. I also have an app for creating pdfs out of combining pngs, jpgs, gifs, etc. (Combine PDF).
    The task of making hundreds of pdfs out of so many jpgs that I have, is there somehow a way I can get automator to do this for me? So far I haven't even found an example with understandable screenshots so that I can get into the correct way of making a workflow do what it is supposed to do correctly.
    Please help...

    Thank you for your reply, the workflow is opened fine, however I'm not sure how to then get this scripted workflow to do what I want to do? I'm a complete n00b when it comes to Automator, is there perhaps a tutorial for idiots that is known where I could read about starting out with Automator to understand it better?
    Thank you

  • Help creating Shell/Applescript to automate creation of Image Sequences

    Hi Everyone,
    I am currently getting into shell scripting (what fun it is!) and have created a couple of scripts that:-
    a) Take a picture with the iSight camera every minute and name them YYYY-MM-DD-HHMM.jpg
    b) Once every few hours move all images into folder YYYY-MM-DD so that all images are in one place.
    What I want to do now is automate the process of creating the Image Sequence timelapse mov from QuickTime Pro.
    Is this possible? Even if you just point me in the right direction I would be very grateful! I've been going around in circles and still haven't found out if I can do this.
    Thanks again,
    James AKA MrBriz

    Eric wrote:
    1) He said libreoffice is the new name for openoffice, which isn't true.
    2) Openoffice may be owned by Oracle, but it's still open source (which is why so many other office suites are based on the openoffice code, e.g., NeoOffice and LibreOffice, as well as others.)
    If you're going to say "libreoffice, formally openoffice" you have to back that up with some truth.
    Thanks Eric.
    My mistake. The last time I checked the opensource world was awash with statements to the effect that OO was dead. I then discovered that LibreOffice was picking up where OO left off.
    I now see that OO is still going. So I guess people were making a fuss about nothing when the Oracle / Sun thing happened.
    Either way, Apple Pages lacks the Navigation feature found in OO/LO, and Word. And that is what I'd like to find a way to work around.
    I had to drop word on this kind of document because its way of handling numbered lists within paragraph styles was driving me nuts, as it had done for the person I was assisting, and has done for many other people I see have posted issues about that as far back as 2003 or earlier. So I switched my friends document over to Pages, as that's installed by default on her MBP. But she really wanted the document map functionality that was in Word. OO/LO was my next option, and the one I am running with for now.

  • Using Automator to create script

    What I'd like to do is use Automator to create a script that will open an image as soon as it is transferred to a specific folder. I'm trying to generate some extra income by doing a bit of photography. Since my photo gear is not wireless or bluetooth capable, I'm going to transfer the image from the camera to my MacBook via an Eye-Fi card. Once the image is transferred into the designated folder, I'd like the script to open the file in either Preview, Aperture, or Photoshop so I can see if I need to re-shoot the image. Is that possible? I'm just not sure how to do it in Automator. Thanks to all.
    -- Dennis

    Unless I misread your post this should be simple. The steps below are for the Snow Leopard version of Automator but will be similar for other versions. I had the test file open in Preview because I do not have Aperture installed but there should be a similar Automator action for it.
    1. Create the folder that you want to drop the photos into and put it in a convenient place. I used the Desktop.
    2. When the opening dialog appears choose Folder Action.
    3. When the next Automator window appears notice the drop down menu that allows you to choose a folder. Click here and choose the folder you created earlier.
    4. Find the Automator action "Open Images In Preview" and drop it into the window's right side as the only step/
    5. Save your work.

  • HT2488 How do I create a workflow in Automator or a script in AppleScripts to download an excel file from a specific webpage?

    I would like to create a workflow in Automator or a script in AppleScript (or a combination of the two), that opens Safari to a specified page and downloads an excel file from this page and saves the downloaded document to my desktop.
    Is this something that be done? If so, how?
    I have so far been able to build a workflow in Automator to open Safari and added an AppleScript that takes Safari to a specific page that has an Excel document.
    I can't figure out where to go from here... Any help would be apprecitated.
    Thanks!

    Would you have the web address the excel sheet is on?
    Is there a simular web page you could point to if not?
    Would there be a copy of the file on an FTP page.  This would be easier. 
    curl
    http://www.cyberciti.biz/faq/mac-os-x-terminal-download-file/
    http://www.thegeekstuff.com/2012/04/curl-examples/
    http://curl.haxx.se/docs/manpage.html
    Macintosh-HD -> Applications -> Utilities -> Terminal
    # Press return to run a command.
    the curl is a terminal command ( Unix ).  It allows you to read a file off of the web.
    man curl
    provides cryptic information on the commnad curl.
    press the space bar to advance  a page.
    press letter to q to quit.
    What you may have to is to read in the web page as a text file.  Go "fishing" through the page to find the excel file you need.  Once you find the file, you can use curl to read the file.
    curl is a very full featured command.  (read complex to figure out ).
    It is easier to diagnose problems with debug information. I suggest adding log statements to your script to see what is going on.  Here is an example.
        Author: rccharles
        For testing, run in the Script Editor.
          1) Click on the Event Log tab to see the output from the log statement
          2) Click on Run
        For running shell commands see:
        http://developer.apple.com/mac/library/technotes/tn2002/tn2065.html
    on run
        -- Write a message into the event log.
        log "  --- Starting on " & ((current date) as string) & " --- "
        --  debug lines
        set desktopPath to (path to desktop) as string
        log "desktopPath = " & desktopPath
        set unixDesktopPath to POSIX path of desktopPath
        log "unixDesktopPath = " & unixDesktopPath
        set quotedUnixDesktopPath to quoted form of unixDesktopPath
        log "quoted form is " & quotedUnixDesktopPath
        try
            set fromUnix to do shell script "ls -l  " & quotedUnixDesktopPath
            display dialog "ls -l of " & quotedUnixDesktopPath & return & fromUnix
        on error errMsg
            log "ls -l error..." & errMsg
        end try
    end run

  • Running an automator workflow w/o opening automator

    Is it possible to run an automator workflow - (check addressbook for birthdays - then send a card) once a day without having to remember to open automator everyday (the whole point is I forget to do this in the first place, so I'm hoping automator can just take care of it). but I don't want to have to leave automator open all the time... I think I read something about using applescripts, but I havent played with them at all...
    Thanks

    Hmm, your idea sounds about right. If you created the birthday event in iCal yourself (i.e. it's not the Birthday calendar iCal provides from your Address Book), then you can add an alarm to it. In that case, you have some nice options and effects.
    Since you would be adding the alarm to the birthday event, then the Automator workflow won't run every day and will only run when the birthday occurs. As for options, you can set the alarm for the event to activate at a specific time in reference to the event, e.g. the day before or perhaps around noon. (That is somewhat dependent on whether you made the event an all-day event or for a certain time, but it works either way and is pretty self evident.) You could also have it automatically occur a day late or even a week late.
    As such, you might consider making the workflow be more specific. You could create a workflow specifically for that birthday, and in that case you'd just specify a person from your Address Book instead of searching it for birthdays. Just depends on how you want to approach it. Regardless, saving the workflow as plug-in in Automator will be the easy way to refer to it as an iCal alarm.
    You mentioned iCal popping up reminders and that's an example of what an alarm can do if you set it that way, so you're probably familiar with them. However, you won't see that when you set the alarm to open a file (as in this case) unless you set a second alarm for the event to show a reminder. To add more alarms to the same event in iCal, you can click on the name "alarm" in the info drawer and it will give you a menu to add another alarm. You can also remove extra alarms in the same way. Wasn't sure if you knew that already.

  • Is there an automator script that automatically opens html links contained in a .txt file?

    I want to make safari automatically open any html files that I email to myself using Send to Dropbox. I need an automator workflow that will automatically open any html files that are sent as .txt to a certain folder in my dropbox. This is the code I currently have:
    ARGV.each do |f|
    file = File.new(f, “r”)
    while (line = file.gets)
    system “open #{line}”
    end
    file.close
    end
    What am I doing wrong?
    This is taken from this post: http://www.macstories.net/tutorials/how-to-send-any-webpage-from-ios-to-your-mac -browser/#comment-146806660.
    As a side note, does anyone know of an easy way to send links to iphone and vice-versa? I know there is the icloud tabs option but I want something that will automatically open when I click send. It ***** that Google Chrome already has the feature and it works perfectly but Apple has yet to adopt such an extension. I find it pretty useful.
    Any help would be appreciated.

    I forgot to mention that I keep getting this error...
    -e:2 automator invalid char `\342' in expression

  • Need help creating applescript to perform automator actions.

    Hi,
    I am looking for help with an applescript the will tell automator to execute  the steps of a workflow.  I'm aware that I coud just run a workflow or even tell applescript to instruct automator to run the workflow, however, I am looking to make this part of a larger workflow and this method would save the hassel of having to create a new workflow outside of applescript each time.
    I would like automator to "get folder contents" then "extract pdf text" to a "new file" with the "same name as original file" in the "same location as original" and "save as txt".  This doesnt seem to difficult to me, however, I have limited knowledge of scripting at this time.
    I appreciate anyones help...

    Hi,
    I'd say on a difficulty scale of 1-10, what you're asking for is a seven.
    Automator is scriptable, but when you run a basic AppleScript like
    tell application "Automator" to make new workflow
    you immediately get taken to the dialog asking you to choose a type for your document (app, calendar plugin etc). So that's going to stop the AppleScript dead in its tracks. It might be possible to move on with GUI scripting (using AppleScript to click the buttons) but it would be a ferocious cludge.
    I think the best approach would be to manually create an empty action as a starting point. You would then need an AppleScript that would duplicate the workflow file (so you've got a fresh one to duplicate next time), open it in Automator, add the appropriate actions, set the settings etc.
    It all sounds a bit too complicated
    HD

  • How to stop Acrobat from automatically opening created PDF?

    This may be a question asked elsewhere, but my search didn't find it.
    How can I stop Acrobat from automatically opening every PDF that I create in Adobe Reader?  I'm using using Acrobat 6.0 Pro.
    Thanks for your help with this major annoyance!
    Cheers.

    Adobe does not recommend Reader and Acrobat both be installed. They have strange interactions and can cause problems. If you do not have problems, you are lucky. Part of the problem is that they leave a part resident to enable quick opening. If it works for you, then fine. If you have some problems, you at least have an idea of what a prime candidate is for the error.

  • Is there a way to create a button on the front panel that would automatically open the txt file data is being stored to?

    I am saving data read from FieldPoint to a .txt file. Is there a way to create a button on the front panel so that when the user pushes this button it automatically opens the .txt folder in notepad? I want to bypass the user having to find the file in the computer in order to open it.

    Hi jem,
    I suggest that you break this up into three seperate questions and re-post to this list. That way you get more ideas from others that may have better insites than myself.
    Re:the sysexec
    The Sysexec will allow you to execute a dos command. This is the equivalent of going to
    Start>>>Run
    What you should do is find the proper DOS command sysntax that is required to open a text file in notepad or your favorite editor. Once you know what a good DOS command is, you should pass that string to the Sysexec.VI. The Sysexec has an input that allows you to choose if the code waits for the command to complete or if it should just start the program and let it run in the background. Sysexec will open its own window to run the command you speci
    fiy.
    Ben
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • When I connect my iPhone to my PC iTunes no longer automatically opens. And when I open it myself, I can't even find my phone under devices. Help please!

    When I connect my iPhone to my PC iTunes no longer automatically opens. And when I open it myself, my phone does not even appear under devices. Help please!!

    Things to try:
    Try resetting your phone (press and hold the Sleep/Wake button and the Home button together for at least ten seconds until the Apple logo appears.  When you see the Apple logo let go of both buttons and your iPhone will reboot.
    Try a new sync cable (often the problem)
    Make sure you phone is adequately charged
    Make sure you are using latest version of iTunes

  • Will opening a pdf in version 8, that was created in version XI, automatically 'secure' the document?

    Will opening a pdf in version 8, that was created in version XI, automatically 'secure' the document?

    Thank you.

Maybe you are looking for

  • Process Report Shipping

    Hi all, I am getting error while processing report shipping. I have processed sales order and the delivery so the report shipment has been triggered. Now I want to process the report shipping by using Tcode-CVD1. I have changed the status "Order rele

  • I have a version Adobe pro 7, my old computer hard drive failed tried to install on my Windows 8.1, will not start up error message

    I have a version Adobe pro 7.1, my old computer hard drive failed, tried to install on my Windows 8.1, will not start up get error message? any solutions?  It worked perfectly fine on my old computer which was windows 7.0

  • Performance problems between dev and prod

    I run the same query with identical data and indexes, but one system takes a 0.01 seconds to run while the production system takes 1.0 seconds to run. TKprof for dev is: Rows Row Source Operation 1 TABLE ACCESS BY INDEX ROWID VAP_BANDVALUE 3 NESTED L

  • Error in the propagation job while setting up streams

    Hi, I am trying to setup streams using the enterprise manager. The wizard completes successfully. Capture and apply process is created properly. But everytime the propagation job has the following error: ORA-02019: connection description for remote d

  • How to find the 'ReturnQty' in Goods RECEIPT PO

    Dear all,     Anybody help me to find the ReturnQty in Goods Receipt Po (PDN1).. say for example i have 100 Qtys in GRPO.Table name pdn1.i have returned 20 Qtys. how can i find the return qty in GRPO.. AnyBody please tell the Field name in Pdn1 for t