From: "email@hidden" <email@hidden>
To: email@hidden
Sent: Sunday, August 30, 2009 12:31:15 AM
Subject: Automator-users Digest, Vol 43, Issue 10
Send Automator-users mailing list submissions to
email@hiddenTo subscribe or unsubscribe via the World Wide Web, visit
http://lists.apple.com/mailman/listinfo/automator-usersor, via email, send a message with subject or body 'help' to
email@hiddenYou can reach the person managing the list at
email@hiddenWhen replying, please edit your Subject
line so it is more specific
than "Re: Contents of Automator-users digest..."
Today's Topics:
1. Problem getting workflow to behave correctly (Aj Davis)
2. Re: Problem getting workflow to behave correctly (Ben Waldie)
----------------------------------------------------------------------
Message: 1
Date: Fri, 28 Aug 2009 23:51:19 -0700
From: Aj Davis <
email@hidden>
Subject: Problem getting workflow to behave correctly
To:
email@hiddenMessage-ID: <
email@hidden" href="mailto:
email@hidden">
email@hidden>
Content-Type: text/plain; charset="us-ascii"
Skipped
content of type multipart/alternative-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 495 bytes
Desc: This is a digitally signed message part
Url : http://lists.apple.com/pipermail/automator-users/attachments/20090828/677fb58d/PGP.bin------------------------------
Message: 2
Date: Sat, 29 Aug 2009 13:09:31 -0400
From: Ben Waldie <
email@hidden>
Subject: Re: Problem getting workflow to behave correctly
To: automator-users List <
email@hidden>
Message-ID: <
email@hidden" href="mailto:
email@hidden">
email@hidden>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
Aj,
On Aug 29, 2009, at 2:51 AM, Aj Davis wrote:
> I know I'm missing something and I'm still rather new to Automator.
> The order I'd like to have things happen is:
>
> 1. Select file(s)
> 2. Label the item as an attachment
> 3. Rename the file appending the current date
> 4. Create a new mail message
> 5. Attach the file
> 6. Move the file to another directory.
First, if you're saving a Folder Action workflow, you don't need an
action at the beginning to get the files. Files are automatically
passed to a Folder Action workflow when they're added to the
folder.
To test the workflow within Automator, however, then you will need an
action to get the files.
Second, the New Mail Message action will automatically attach files
passed to it as input. So, you can do the attachment part of the
workflow in one step.
Your workflow should look like this:
* Ask for Finder Items - Use this action only for testing within
Automator. Then, disable or remove it when you save the workflow as a
Folder Action. Set it to ask you for a file, not a folder.
* Label Finder Items - Receives the files passed as input, and assigns
a label to them. Passes the labeled files as output to the next action.
* Rename Finder Items - Renames the labeled files from the previous
action, and passes the renamed files as output to the next action.
* Move Finder Items - Moves the renamed files to another folder,
and
passes the moved files to the next action.
* New Mail Message - Creates a new Mail message, and attaches the
files received as input.
I think that should do it. Hope this helps.
Regards,
-Ben
P.S. If you're new to Automator, and you have not done so already, you
may want to check out my book... "Automator for Mac OS X 10.5 Leopard:
Visual QuickStart Guide" (Peachpit Press) <http://www.automatedworkflows.com/books/automator_vqs.html >, as well as my video podcast series "Mac Automation Made Simple" <http://www.automatedworkflows.com/tips/podcast.html > (and available in iTunes).
Ben Waldie
President
Automated Workflows,
LLC
484.744.1831
=============================================
AppleScript * Automator * Workflow Automation
Products, Training, Custom Development Services
<http://www.automatedworkflows.com> <http://twitter.com/applescriptguru>=============================================
------------------------------
_______________________________________________
Automator-users mailing list
email@hiddenhttp://lists.apple.com/mailman/listinfo/automator-usersEnd of Automator-users Digest, Vol 43, Issue
10
***********************************************