[OSX-Users] Re: Applescript help?

Jules sysjkf at ecs.soton.ac.uk
Mon May 18 09:33:23 BST 2009


That's sort of right. I've got it working now anyway, thanks.

Cheers,
Jules.

On 18/05/2009 09:08, JD Marsters wrote:
> 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
>>
>

Jules

-- 
sysjkf at ecs.soton.ac.uk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/osx-users/attachments/20090518/54962b84/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: julessig.png
Type: image/png
Size: 2669 bytes
Desc: not available
Url : http://mailman.ecs.soton.ac.uk/pipermail/osx-users/attachments/20090518/54962b84/attachment.png 


More information about the Osx-users mailing list