<!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">
That's sort of right. I've got it working now anyway, thanks.<br>
<br>
Cheers,<br>
Jules.<br>
<br>
On 18/05/2009 09:08, JD Marsters wrote:
<blockquote cite="mid:4A111796.7000900@ecs.soton.ac.uk" type="cite">
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <title></title>
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 moz-do-not-send="true" class="moz-txt-link-freetext"
 href="http://i.tuaw.com/?date=2009/03/26&amp;slug=applescript-exploring-the-power-of-folder-actions-part-iii&amp;a=show-post&amp;commentspage=">http://i.tuaw.com/?date=2009/03/26&amp;slug=applescript-exploring-the-power-of-folder-actions-part-iii&amp;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' &lt; 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>
</blockquote>
<br /><img src="cid:julessig.png">
<br />--&nbsp;
<br />sysjkf@ecs.soton.ac.uk
</body>
</html>