[OSX-Users] Re: Applescript help?
JD Marsters
sysjdsm at ecs.soton.ac.uk
Mon May 18 09:08:54 BST 2009
It's not my chosen specialist subject area, but the form:
|repeat with i from 1 to number of items in added_items
set new_item to item i of added_items
set the item_path to *the quoted form of the POSIX path of* new_item
...
||end repeat|
|
|might be of use. I nicked this information from:
http://i.tuaw.com/?date=2009/03/26&slug=applescript-exploring-the-power-of-folder-actions-part-iii&a=show-post
Best,
JD.
Julian Field wrote:
> I am trying to add a folder action to automatically do the following
> when I add a file to a folder:
>
> tr -d '\\34' < added_item | cut -d, -f2,1,12 | tr ',' ' ' | grep -v
> Timestamp
>
> and append the result to a fixed filename in the directory.
>
> I have found "do shell script" but I can't seem to get the filename of
> the added_item. I started from the add_items.scpt file which uses
> added_items but I cannot get the "POSIX path of" the first added_item in
> the list.
>
> Anyone out there who can help me please?
>
> Thanks!
>
> Jules
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/osx-users/attachments/20090518/358f38df/attachment.html
More information about the Osx-users
mailing list