Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.4: A simple Mail backup Automator workflow' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: A simple Mail backup Automator workflow
Authored by: craigst on Jun 05, '07 07:58:31AM

I tried creating this workflow but it didn't work. The error was in the Create Archive step. Said "[NSCFArray objectAtIndex:] index (4) beyond bounds (4) (-1) occurred in Creat Archive"



[ Reply to This | # ]
10.4: A simple Mail backup Automator workflow
Authored by: derekhed on Jun 05, '07 11:38:53AM

I too had this error. I rebuilt my script and selected the items to add to the archive one at a time instead of dragging the items from the Finder into the automator window. The script seemed to run fine after that.
YMMV



[ Reply to This | # ]
10.4: A simple Mail backup Automator workflow
Authored by: mhite on Jun 25, '07 04:15:47PM

This happened to me also. To "fix" it, I removed the plist file from the archive file list (it was at the top), ran the Automator workflow again and suprisingly enough it worked. I added back the plist file, ran it again, and the problem didn't reappear. Go figure. I haven't the slightest idea why it nows works.



[ Reply to This | # ]
10.4: A simple Mail backup Automator workflow
Authored by: cooker47 on Jul 01, '07 12:53:15AM

A very useful example as I didn't know you could just drag objects like that to create the "Get Specified Finder Items" block.

I managed to get the thing working first time through, only to find that all of a sudden it then stopped working with a similar error code in one of the conversions - I'm not sure exactly what it was or what I did wrong - I had tried changing the word "archive" in the "Create Archive" step to "Mail-archive", and that's illegal [What other options can you put in there anyway? The field is editable.] - the problem started right after this - but also maybe I dragged the items in the "Get Specified Finder Items" step into a different order by mistake - [Thinks: can you do that?]

Anyhoo, I started over and added an extra "Rename" to call the result "Mail-archive-yyyy-mm-dd.zip" and it works fine.

Not to be pedantic, I found I couldn't "save it as a Program" [sic] but I could save it as an Application. However, I found mine wouldn't run while Automator itself was still going, but worked after I quit Automator, either because it still had the workflow open, or because you have to quit Automator to start a workflow that has been saved as an Application.

Thankyou.



[ Reply to This | # ]