<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
It's not my chosen specialist subject area, but the form:<br>
<br>
<code>repeat with i from 1 to number of items in added_items<br>
set new_item to item i of added_items<br>
set the item_path to <b>the quoted form of the POSIX path of</b>
new_item<br>
...<br>
</code><code>end repeat</code><br>
<code><br>
</code>might be of use. I nicked this information from:<br>
<br>
<a class="moz-txt-link-freetext"
href="http://i.tuaw.com/?date=2009/03/26&slug=applescript-exploring-the-power-of-folder-actions-part-iii&a=show-post&commentspage=">http://i.tuaw.com/?date=2009/03/26&slug=applescript-exploring-the-power-of-folder-actions-part-iii&a=show-post</a><br>
<br>
Best,<br>
<br>
JD.<br>
<br>
<br>
Julian Field wrote:<br>
<blockquote type="cite">I am trying to add a folder action to
automatically do the following <br>
when I add a file to a folder:<br>
<br>
tr -d '\\34' < added_item | cut -d, -f2,1,12 | tr ',' ' ' | grep -v <br>
Timestamp<br>
<br>
and append the result to a fixed filename in the directory.<br>
<br>
I have found "do shell script" but I can't seem to get the filename of <br>
the added_item. I started from the add_items.scpt file which uses <br>
added_items but I cannot get the "POSIX path of" the first added_item
in <br>
the list.<br>
<br>
Anyone out there who can help me please?<br>
<br>
Thanks!<br>
<br>
Jules<br>
<br>
</blockquote>
<br>
</body>
</html>