<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel>
	  <title>Ask MetaFilter questions tagged with automator</title>
      <link>http://ask.metafilter.com/tags/automator</link>
      <description>Questions tagged with 'automator' at Ask MetaFilter.</description>
	  <pubDate>Thu, 12 Nov 2009 15:10:40 -0800</pubDate> <lastBuildDate>Thu, 12 Nov 2009 15:10:40 -0800</lastBuildDate>

      <language>en-us</language>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <ttl>60</ttl>	  
	<item>
	<title>How to bulk rename itunes files from external data source.</title>
	<link>http://ask.metafilter.com/137973/How%2Dto%2Dbulk%2Drename%2Ditunes%2Dfiles%2Dfrom%2Dexternal%2Ddata%2Dsource</link>	
	<description>How can I bulk rename files in itunes according to data contained in a separate file? I have 4000-some .wav files in itunes that are essentially field recordings of  people talking.  The files are named with a 10 digit unique id number and the date acquired. Example: 1234567890_11122009.  In a separate csv file I have the identifying information of the individual with the same unique ID number.&lt;br&gt;
&lt;br&gt;
I have rated all 4000 recordings based on quality and want to maintain those ratings, but would like to rename the files to drop the unique ID and instead insert the person&apos;s name from the csv file.  I.e. 1234567890_11122009 becomes Smith_Mary_123_Fake_Street_Anytown_STATE&lt;br&gt;
&lt;br&gt;
Can anyone picture a workflow that would accomplish this mass filename change while still maintaining the ratings?&lt;br&gt;
&lt;br&gt;
I use a mac and have a decent understanding of automator, grep, csv files etc, but have no real programming skill.  I am willing to convert recordings to a different format (mp3 etc.) if that would help. Any ideas?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.137973</guid>
	<pubDate>Thu, 12 Nov 2009 15:10:40 -0800</pubDate>
	<category>automator</category>
	<category>data</category>
	<category>filename</category>
	<category>itunes</category>
	<category>management</category>
	<category>osx</category>
	<dc:creator>jlowen</dc:creator>
	</item>
	<item>
	<title>I am not an Automator-aton</title>
	<link>http://ask.metafilter.com/136807/I%2Dam%2Dnot%2Dan%2DAutomatoraton</link>	
	<description>How can Automator help me save a bunch of files? I have ~200 video files. I would like Automator to open them in Quicktime X, and perform a &quot;Save as&quot; in a different folder with the same filename. I know it sounds like I&apos;m just duplicating them but bear with me. I&apos;m totally clueless in using Automator and recording the actions isn&apos;t working, perhaps I&apos;m doing it wrong.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.136807</guid>
	<pubDate>Thu, 29 Oct 2009 19:41:13 -0800</pubDate>
	<category>automator</category>
	<dc:creator>Scientifik</dc:creator>
	</item>
	<item>
	<title>Need to automate a weekly task using AppleScript</title>
	<link>http://ask.metafilter.com/118012/Need%2Dto%2Dautomate%2Da%2Dweekly%2Dtask%2Dusing%2DAppleScript</link>	
	<description>I need to automate the process of printing a report to PDF with the date in the file name, saving it in an archive folder, printing it, and emailing it as an attachment. I am on a Mac and using Pages, Automator, and AppleScript. Help me find the missing pieces! I have to write a report each Friday for work and send it as an attachment to a specific email address where it gets processed by an internal server. Usually my process is as follows:&lt;br&gt;
&lt;br&gt;
1. Write report in Pages.&lt;br&gt;
2. Print report as PDF to a specific folder using OS X&apos;s built-in capabilities.&lt;br&gt;
3. Name the PDF file based on the date.&lt;br&gt;
4. Print the PDF file to a hard copy.&lt;br&gt;
5. Attach the PDF to an email using Mail and send it.&lt;br&gt;
&lt;br&gt;
I realize that&apos;s not a ton of work, but this Friday I felt the urge to automate the process. At first I wanted to do it to save myself some time, and then once I had spent an hour trying to figure it out it became more of a challenge, and then after spending another hour on it I didn&apos;t care about solving the problem myself and just wanted a solution by any means necessary.&lt;br&gt;
&lt;br&gt;
Most of the individual pieces of this automated task are not difficult to accomplish, but I have found it difficult to get each step to talk to the next. I have also had trouble due to the fact that I want to make the file name of the saved PDF contain the date it was saved. I&apos;m sure this would be easy for anyone who has used AppleScript extensively, but I&apos;m just a beginner at it so it&apos;s baffling me.&lt;br&gt;
&lt;br&gt;
Could someone help me figure out the proper script structure to make all this work? If it matters, I am using the latest version of OS X and Pages. The files need to be saved with the name &quot;weekly_report_MM_DD_YYYY.pdf&quot; (it doesn&apos;t have to be exact, just something along those lines) and the email that it is attached to doesn&apos;t need anything in it except for a recipient. If I&apos;ve forgotten any necessary details, please let me know and I&apos;ll provide them.&lt;br&gt;
&lt;br&gt;
HELP!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.118012</guid>
	<pubDate>Sat, 28 Mar 2009 20:20:15 -0800</pubDate>
	<category>apple</category>
	<category>applescript</category>
	<category>automation</category>
	<category>automator</category>
	<category>mac</category>
	<category>scripting</category>
	<dc:creator>joshrholloway</dc:creator>
	</item>
	<item>
	<title>Can Automator Do This</title>
	<link>http://ask.metafilter.com/107809/Can%2DAutomator%2DDo%2DThis</link>	
	<description>I want Leopard&apos;s Automator to do something seemingly simple, but can&apos;t get it to work.  Can anyone help? When I used Office 2004 I had a simple VBA script that typed the current date, hit [return], hit [tab], then typed the current time.  I used this script every time I started notes for a meeting, or other types of entries.&lt;br&gt;
&lt;br&gt;
Can Automator do this?  Again, the steps:&lt;br&gt;
&lt;br&gt;
Add Current Date&lt;br&gt;
Return Character&lt;br&gt;
Tab Character&lt;br&gt;
Add Current Time&lt;br&gt;
Add a &quot;:&quot; character&lt;br&gt;
&lt;br&gt;
Pretty simple, but I can&apos;t get it to work.&lt;/return&gt;&lt;/tab&gt;</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.107809</guid>
	<pubDate>Wed, 26 Nov 2008 14:26:35 -0800</pubDate>
	<category>Automator</category>
	<category>Leopard</category>
	<category>VBA</category>
	<dc:creator>crapples</dc:creator>
	</item>
	<item>
	<title>Email client not working properly? You don&apos;t say...</title>
	<link>http://ask.metafilter.com/107641/Email%2Dclient%2Dnot%2Dworking%2Dproperly%2DYou%2Ddont%2Dsay</link>	
	<description>I created an Automator Workflow to do a daily automatic offsite backup of my documents. The only snag is that when I get my mac&apos;s Mail program to send the email to my gmail account, most of the time the message just sits in the outbox and doesn&apos;t actually send; but sometimes it starts sending right away. What gives?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.107641</guid>
	<pubDate>Mon, 24 Nov 2008 16:43:46 -0800</pubDate>
	<category>automator</category>
	<category>backup</category>
	<category>gmail</category>
	<category>mac</category>
	<category>mail</category>
	<category>offsite</category>
	<dc:creator>GleepGlop</dc:creator>
	</item>
	<item>
	<title>How do I use either/or logic inside an OSX Automator action?</title>
	<link>http://ask.metafilter.com/104673/How%2Ddo%2DI%2Duse%2Deitheror%2Dlogic%2Dinside%2Dan%2DOSX%2DAutomator%2Daction</link>	
	<description>How do I use either/or logic inside an OSX Automator action? This seems SO bloody simple, but I can&apos;t for the life of me figure it out.&lt;br&gt;
&lt;br&gt;
So I&apos;ve got an Automator workflow that finds all of the files with an extension of .avi inside a certain folder, then does something with them. This works great, but what I REALLY want is for the workflow to search for all files in the folder that have an .avi *or* a .wmv extension. Is this possible?&lt;br&gt;
&lt;br&gt;
I&apos;ve tried &quot;avi OR wmv&quot;, &quot;avi {or} wmv&quot;, &quot;avi &quot;or&quot; wmv&quot; and anything else you could possible imagine.&lt;br&gt;
&lt;br&gt;
The specific action I want to be able to put the either/or operator into is the &quot;Filter Finder Items&quot; action. This is a default Automator action that comes with OSX.&lt;br&gt;
&lt;br&gt;
*beating head against desk*</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.104673</guid>
	<pubDate>Sun, 19 Oct 2008 23:03:04 -0800</pubDate>
	<category>apple</category>
	<category>automator</category>
	<category>mac</category>
	<category>osx</category>
	<category>scripting</category>
	<category>workflow</category>
	<dc:creator>JPowers</dc:creator>
	</item>
	<item>
	<title>Can an Automator Workflow/App Find Itself?</title>
	<link>http://ask.metafilter.com/100816/Can%2Dan%2DAutomator%2DWorkflowApp%2DFind%2DItself</link>	
	<description>Obscure Mac geekery filter...  On OS X Leopard, how can I get a reference to the current location of an Automator workflow/app in a shell script within that workflow? I&apos;ve got a complex Automator workflow that currently has to move files in and out of various directories.  Currently these directories live in a specific location that&apos;s hard coded into the workflow.  What I&apos;d like to do is have the workflow be able to reference it&apos;s own package and create the directories it needs inside itself (ex. /some/random/path/myworkflow.workflow/Contents/niftyFolders) or, barring that, just create the directories in the same directory the workflow itself is currently in.  Unfortunately I can&apos;t find a way to get the location of the workflow itself.&lt;br&gt;
&lt;br&gt;
I&apos;m thinking the most likely way to do it at this point is with AppleScript, and I&apos;ve looked into that a little, but have come up empty.  AppleScript and I have never clicked, so I thought I&apos;d turn to all of you.&lt;br&gt;
&lt;br&gt;
Thanks!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.100816</guid>
	<pubDate>Wed, 03 Sep 2008 12:06:13 -0800</pubDate>
	<category>applescript</category>
	<category>automator</category>
	<category>directories</category>
	<category>folders</category>
	<category>leopard</category>
	<category>mac</category>
	<dc:creator>Xuff</dc:creator>
	</item>
	<item>
	<title>RSS to Audio in Automator</title>
	<link>http://ask.metafilter.com/95865/RSS%2Dto%2DAudio%2Din%2DAutomator</link>	
	<description>How can I operate on individual articles from an RSS feed in Automator? Ultimately I am trying to create audio tracks of my feeds - one track per articles. I know that you could do &quot;Get Specified URL&quot; then &quot;Get Text From Articles&quot; and then &quot;Text To Audio File&quot; however this will create a single audio track of all the articles. I want to bust the articles out as individual tracks.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.95865</guid>
	<pubDate>Sun, 06 Jul 2008 09:49:55 -0800</pubDate>
	<category>audio</category>
	<category>automator</category>
	<category>rss</category>
	<category>speech</category>
	<category>text</category>
	<category>workflow</category>
	<dc:creator>jasmarc</dc:creator>
	</item>
	<item>
	<title>Mom, meet Mac! You&apos;ll LOVE it, it&apos;s SO simple...</title>
	<link>http://ask.metafilter.com/87986/Mom%2Dmeet%2DMac%2DYoull%2DLOVE%2Dit%2Dits%2DSO%2Dsimple</link>	
	<description>Mom&apos;s FINALLY decided she&apos;ll get a computer. I&apos;m gonna help, so it&apos;ll be a MacBook. I know there&apos;s been a lot already here on this topic, but... ...since this means I&apos;ll be upgrading to 10.5 myself as well, I&apos;m looking for ideas specific to this spiffy new world. I&apos;m of course also combing the net for articles on this and buying some Leopard manuals, so I&apos;m here mainly for links, tips and anecdotes from anybody who&apos;s recently been over this exact ground.&lt;br&gt;
&lt;br&gt;
Details:&lt;br&gt;
She&apos;s a vigorous, sharp, but distinctly OLD-world 84, still running her own Montessori preschool, and for years now has been very vocal in her disapproval of computers for all manner of reasons. 5 recent minutes with PhotoBooth and Mail on a shiny new iMac miraculously changed her mind, at least for keeping in touch and penning her memoirs...&lt;br&gt;
&lt;br&gt;
She&apos;s on one coast; I&apos;m on the other. I&apos;m shipping the MacBook to her after I set it up. We&apos;ll both have .Mac accounts and broadband, so I&apos;m interested in video Chats and remotely controlling her desktop when showing her stuff/fixing things. And I&apos;ve never done either before...&lt;br&gt;
&lt;br&gt;
She says she just wants to write and do email, and is scared of the mouse. I have no idea how, or IF, she&apos;ll take to actually learning to use and customize the Finder, etc., so I&apos;m planning to record some how-to videos and put &apos;em on her desktop. I&apos;m also streamlining her Mac with preset Spaces for auto-launched Mail, Pages, Safari, creating a few Pages templates, and maybe adding in LaunchBar for easy keyboard automation (without explaining to her what it is...), and...wondering what else I might do. Got any cool thoughts on how I can maybe use Automator and/or some other keystroke-creation utility to automate basic texty/searchy/sendy things she&apos;ll want to do? Should I maybe make myself the Adminstrator? I want to keep everything DIRT-simple and totally stumble-proof, at least initially.&lt;br&gt;
&lt;br&gt;
She&apos;s VERY suspicious of the Internet, both culturally and ethically, but I&apos;m sure she&apos;ll learn to love it eventually as a great big replacement for her 1911 Britannica and her Home Book of Verse. But I&apos;m DREADING her first brush with porn spam or pictures... Might some kind of &quot;parental&quot; controls or other filters prove useful? Never used these either...&lt;br&gt;
&lt;br&gt;
Many thanks in advance for all comments!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.87986</guid>
	<pubDate>Sat, 05 Apr 2008 12:12:40 -0800</pubDate>
	<category>automator</category>
	<category>computer</category>
	<category>Internet</category>
	<category>leopard</category>
	<category>mac</category>
	<category>parents</category>
	<category>remotedesktop</category>
	<category>teaching</category>
	<dc:creator>dpcoffin</dc:creator>
	</item>
	<item>
	<title>Automator and PowerPoint</title>
	<link>http://ask.metafilter.com/87007/Automator%2Dand%2DPowerPoint</link>	
	<description>How can I use Automator to make a PowerPoint presentation run? This is probably easy, but I can&apos;t make it work, and I can&apos;t google enough pieces of the picture to bring it together. So here goes:  how can I set up an Automator workflow to make a PowerPoint presentation open automatically and start scrolling through slides?  The more detailed you can be about the workflow, the better, as the whole Automator interface feels really weird and counterintuitive to me.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.87007</guid>
	<pubDate>Tue, 25 Mar 2008 09:00:49 -0800</pubDate>
	<category>automation</category>
	<category>automator</category>
	<category>osx</category>
	<category>powerpoint</category>
	<dc:creator>COBRA!</dc:creator>
	</item>
	<item>
	<title>How to create automator action to resize images to a certain width? </title>
	<link>http://ask.metafilter.com/81391/How%2Dto%2Dcreate%2Dautomator%2Daction%2Dto%2Dresize%2Dimages%2Dto%2Da%2Dcertain%2Dwidth</link>	
	<description>How do I create an automator action to resize images to a certain width? The &quot;scale images&quot; action only resizes the longest side, which is sometimes the height, not the width. I want a quick action to resize images for blog posts, so they are 470px wide, no matter what. Images that are taller than they are wide get the height scaled down to 470px, but then the width is less than 470px.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.81391</guid>
	<pubDate>Sat, 19 Jan 2008 08:37:54 -0800</pubDate>
	<category>automator</category>
	<category>image</category>
	<category>scale</category>
	<category>width</category>
	<dc:creator>krunk</dc:creator>
	</item>
	<item>
	<title>How to create a unique osx automator action that randomly renames files?</title>
	<link>http://ask.metafilter.com/78113/How%2Dto%2Dcreate%2Da%2Dunique%2Dosx%2Dautomator%2Daction%2Dthat%2Drandomly%2Drenames%2Dfiles</link>	
	<description>How to create a unique osx automator action that randomly renames files? Here&apos;s something I&apos;d like to make OSX Automator do: I have a folder full of 1000 files named sequentially 001.jpg, 002.jpg, etc.&lt;br&gt;
&lt;br&gt;
I would like an Automator action that randomly renames the files but keeps the original filenames intact.&lt;br&gt;
&lt;br&gt;
(Ie. 001.jpg would be renamed 356.jpg for example, 248.jpg would be renamed 129 or some random number)&lt;br&gt;
&lt;br&gt;
Any ideas how to make this happen?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2007:site.78113</guid>
	<pubDate>Fri, 07 Dec 2007 20:26:03 -0800</pubDate>
	<category>apple</category>
	<category>automator</category>
	<category>osx</category>
	<category>scripting</category>
	<dc:creator>jeremias</dc:creator>
	</item>
	<item>
	<title>URL Find and Replace</title>
	<link>http://ask.metafilter.com/77126/URL%2DFind%2Dand%2DReplace</link>	
	<description>I&apos;m working on a quick Automator workflow and need some help replacing the local hostname in a series of URLs. Here&apos;s the deal: the Automator workflow retrieves a list of return delimited URLs with random alphanumeric local hostnames (e.g., wrim881q.example.net, ghu2z.example.net, etc.). I need to pass these into a shell script and change them all to the same local hostname (e.g., foo.example.net) and then download all the URLs with curl.&lt;br&gt;
&lt;br&gt;
Help?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2007:site.77126</guid>
	<pubDate>Mon, 26 Nov 2007 12:21:33 -0800</pubDate>
	<category>Apple</category>
	<category>Automator</category>
	<category>curl</category>
	<category>Mac</category>
	<category>MacOSX</category>
	<category>resolved</category>
	<category>schellscript</category>
	<category>script</category>
	<dc:creator>nathan_teske</dc:creator>
	</item>
	<item>
	<title>Automator workflows for Excel </title>
	<link>http://ask.metafilter.com/76557/Automator%2Dworkflows%2Dfor%2DExcel</link>	
	<description>Automator as an antidote to Excel tedium. Can you help me get through repetitive tasks with favorite Automator tricks in Leopard? I would like to be able to open a new Excel workbook, create worksheets based on an existing list, and copy formatting to each sheet. Can you point out Web resources for an Automator amateur, whether general or for Excel in particular?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2007:site.76557</guid>
	<pubDate>Sun, 18 Nov 2007 16:50:41 -0800</pubDate>
	<category>apple</category>
	<category>automator</category>
	<category>excel</category>
	<category>macintosh</category>
	<category>office</category>
	<category>osx</category>
	<dc:creator>lackutrol</dc:creator>
	</item>
	<item>
	<title>Is it possible to export an .ics file from iCal containing just today&apos;s events from specific calendars?</title>
	<link>http://ask.metafilter.com/75414/Is%2Dit%2Dpossible%2Dto%2Dexport%2Dan%2Dics%2Dfile%2Dfrom%2DiCal%2Dcontaining%2Djust%2Dtodays%2Devents%2Dfrom%2Dspecific%2Dcalendars</link>	
	<description>Is it possible to export an .ics file from iCal containing just today&apos;s events from specific calendars? I assumed I&apos;d be able to do this with Automator, but it doesn&apos;t have any actions for exporting from iCal.&lt;br&gt;
&lt;br&gt;
So is there a way to do this, perhaps with Applescript? I&apos;ve tried Googling to no avail - there seem to be plenty of scripts to export todo items in various ways, but nothing regarding calendars for a given date that I could find.&lt;br&gt;
&lt;br&gt;
Alternatively, is it possible to make a new &apos;daily&apos; calendar containing all today&apos;s events from specific calendars (and nothing else), which I could then export manually? Again, I can&apos;t get Automator to do this - the New iCal Events action won&apos;t take input from Filter Items in iCal or Get Specified iCal Items.&lt;br&gt;
&lt;br&gt;
I&apos;m running iCal 3.0 on OS 10.5.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2007:site.75414</guid>
	<pubDate>Sun, 04 Nov 2007 11:28:39 -0800</pubDate>
	<category>applescript</category>
	<category>automator</category>
	<category>export</category>
	<category>ical</category>
	<category>leopard</category>
	<category>osx</category>
	<category>stumped</category>
	<category>ultrastumped</category>
	<category>unanswered</category>
	<dc:creator>jack_mo</dc:creator>
	</item>
	<item>
	<title>The lowdown on the downloads -- how to stay organized?</title>
	<link>http://ask.metafilter.com/71995/The%2Dlowdown%2Don%2Dthe%2Ddownloads%2Dhow%2Dto%2Dstay%2Dorganized</link>	
	<description>How to best organize and maintain my Downloads folder in OS X?  Automator tips? My Downloads folder currently has 96 items in it... I know I should just take the time to manually sort and delete/save it all, but I&apos;m curious how other people manage to organize their downloads.&lt;br&gt;
&lt;br&gt;
Are there any useful Automator tricks?  It would be handy for files older than a week or so to automatically be moved elsewhere, but as far as I can tell, OS X only recognizes a file&apos;s created-on date, not its saved-to-this-folder date.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2007:site.71995</guid>
	<pubDate>Thu, 20 Sep 2007 10:06:11 -0800</pubDate>
	<category>automator</category>
	<category>downloads</category>
	<category>internet</category>
	<category>mac</category>
	<category>organization</category>
	<category>osx</category>
	<dc:creator>Robot Johnny</dc:creator>
	</item>
	<item>
	<title>Automator-filter: Help me redact!</title>
	<link>http://ask.metafilter.com/71484/Automatorfilter%2DHelp%2Dme%2Dredact</link>	
	<description>How do I automate image redaction with Automator? I looked high and low for an automator action to put a white box over a certain part of a TIFF file. I have over 500 images that need to be redacted in the same place. All the image actions I find involve applying filters and other specific menu actions, but I want to draw a box over text in the lower left corner of an image.&lt;br&gt;
&lt;br&gt;
If there is a free way to do this otherwise with Windows, Linux or Mac, I am open to suggestions.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2007:site.71484</guid>
	<pubDate>Thu, 13 Sep 2007 16:47:32 -0800</pubDate>
	<category>automator</category>
	<category>batch</category>
	<category>imageediting</category>
	<category>macosx</category>
	<dc:creator>rabbitsnake</dc:creator>
	</item>
	<item>
	<title>PDF me.</title>
	<link>http://ask.metafilter.com/56065/PDF%2Dme</link>	
	<description>How do I batch convert a bunch of word documents into PDF files, using Automator (in OS X?) I&apos;m stumped.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2007:site.56065</guid>
	<pubDate>Tue, 30 Jan 2007 19:47:41 -0800</pubDate>
	<category>automator</category>
	<category>os</category>
	<category>pdf</category>
	<category>x</category>
	<dc:creator>donguanella</dc:creator>
	</item>
	<item>
	<title>How to make this automator action?</title>
	<link>http://ask.metafilter.com/41273/How%2Dto%2Dmake%2Dthis%2Dautomator%2Daction</link>	
	<description>Tearing my hair out over automator and applescript. I&apos;m trying to create an action that will change my desktop background: display photos of morning scenes in the morning, evening scenes in the evening, day scenes in the day, etc.&lt;br&gt;
&lt;br&gt;
I&apos;ve glue-sticked together an applescript that will find out the time and and put it in a variable as one of three words: morning, day, evening and night.&lt;br&gt;
&lt;br&gt;
&lt;small&gt;&lt;code&gt;set TheDate to current date&lt;br&gt;
set theDateText to TheDate as text&lt;br&gt;
set theTime to time of TheDate&lt;br&gt;
set theHour to theTime div 3600&lt;br&gt;
&lt;br&gt;
if theHour &amp;gt; 6 and theHour &lt; 11 then set thename to morning end if if thehour&gt; 10 and theHour &lt; 19 then set thename to day end if if thehour&gt; 18 and theHour &lt; 23 then set thename to evening end if if thehour&gt; 22 then&lt;br&gt;
	set theName to &quot;night&quot;&lt;br&gt;
end if&lt;br&gt;
&lt;br&gt;
if theHour &lt; 7 then set thename to night end if/code&gt;&lt;/&gt;&lt;/&gt;&lt;/&gt;&lt;/&gt;&lt;/code&gt;&lt;/small&gt;&lt;br&gt;
&lt;br&gt;
But I can&apos;t for the life of me figure out how to get that variable into the next automator step, even though I have folders in ~/Backgrounds named &quot;morning&quot; &quot;day&quot; &quot;evening&quot; and &quot;night&quot; full of flickr images ready and waiting the be fetched randomly and plugged into automator&apos;s built-in &quot;set as desktop background&quot; step.  I can get &quot;day&quot; (or &quot;evening&quot; or whatever) to get entered into spotlight, but that doesn&apos;t do much good.&lt;br&gt;
&lt;br&gt;
(It would be even cooler if someone knew of a way to pull the photos straight from flickr, but that sounds hard.  I am, it should be obvious at this point, not a programmer at heart.)</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2006:site.41273</guid>
	<pubDate>Fri, 30 Jun 2006 19:16:08 -0800</pubDate>
	<category>apple</category>
	<category>applescript</category>
	<category>automator</category>
	<category>mac</category>
	<category>macintosh</category>
	<category>osx</category>
	<category>programming</category>
	<category>scripting</category>
	<dc:creator>Tlogmer</dc:creator>
	</item>
	<item>
	<title>Uses for Automator</title>
	<link>http://ask.metafilter.com/35414/Uses%2Dfor%2DAutomator</link>	
	<description>I&apos;m overwhelmed by &lt;a href=&quot;http://www.apple.com/macosx/features/automator/&quot;&gt;Automator&lt;/a&gt;. What are some of the ways that you use it?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2006:site.35414</guid>
	<pubDate>Thu, 30 Mar 2006 16:33:38 -0800</pubDate>
	<category>automator</category>
	<category>mac</category>
	<category>osx</category>
	<dc:creator>charmston</dc:creator>
	</item>
	<item>
	<title>Automating Safari in OSX</title>
	<link>http://ask.metafilter.com/33151/Automating%2DSafari%2Din%2DOSX</link>	
	<description>In OSX 10.4.5, is there an Automator workflow or a way in iCal to have Safari open a particular website at a particular time everyday? I basically want Safari to open to a specific URL at the same time everyday.  Is this possible?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2006:site.33151</guid>
	<pubDate>Wed, 22 Feb 2006 16:10:20 -0800</pubDate>
	<category>Automator</category>
	<category>iCal</category>
	<category>OSX</category>
	<category>Safari</category>
	<dc:creator>se7encrows</dc:creator>
	</item>
	<item>
	<title>How do I script removal of the head and tail of a file up to and after given comments?</title>
	<link>http://ask.metafilter.com/30385/How%2Ddo%2DI%2Dscript%2Dremoval%2Dof%2Dthe%2Dhead%2Dand%2Dtail%2Dof%2Da%2Dfile%2Dup%2Dto%2Dand%2Dafter%2Dgiven%2Dcomments</link>	
	<description>Given BBEdit (or sed) and a file of HTML, how can I script the deletion of all text up to a given comment tag, skip over deleting the part of the file I want to keep, then resume deletion of contents after the next occurrence of a given comment tag? I edit a site that calls for me to periodically repurpose content from other sites in our company.  &lt;br&gt;
&lt;br&gt;
I&apos;ve written an Automator workflow that handles grabbing the printer-friendly version of a given article I&apos;m repurposing, runs it through TextSoap to strip smartquotes and other stuff I hate, replaces some absolute links to be appropriate to the article&apos;s new home, slaps on a line attributing the original source for the story, and loads it into BBEdit.  &lt;br&gt;
&lt;br&gt;
At this point, it&apos;s a pretty simple operation to manually cut out the gunk I don&apos;t want, which is everything in the page source before a comment tag that reads &quot;content_start&quot; and after a comment tag that reads &quot;content_stop&quot;, but I&apos;d really like to automate this part, too, for the sheer pleasure of having an end-to-end workflow.&lt;br&gt;
&lt;br&gt;
I just don&apos;t have the scripting chops to describe &quot;delete all the lines up to this comment and delete all the lines after that comment.&quot;&lt;br&gt;
&lt;br&gt;
It seems doing this in Applescript using BBEdit&apos;s scripting dictionary or doing it with a line or two of sed would be equally adequate.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2006:site.30385</guid>
	<pubDate>Sat, 07 Jan 2006 13:44:02 -0800</pubDate>
	<category>automator</category>
	<category>bbedit</category>
	<category>osx</category>
	<category>scripting</category>
	<category>sed</category>
	<dc:creator>mph</dc:creator>
	</item>
	
	</channel>
</rss>

