Re: Manipulating multiple files in arbitrary applications
Re: Manipulating multiple files in arbitrary applications
- Subject: Re: Manipulating multiple files in arbitrary applications
- From: Andy Wylie <email@hidden>
- Date: Wed, 14 Aug 2002 20:57:04 +1200
on Tue, 13 Aug 2002 17:22:08 +0100 Hamish Allan wrote:
>
What I want to do is simple. For a collection of files (e.g., traverse a
>
folder and its subfolders), open them in the application, and simply save
>
them again (the purpose of this exercise is to ensure that their file
>
associations are correct - the files in question were created on a PC).
>
>
My pseudo-code would look something like this:
>
>
for filename in "folder" plus subfolders
>
tell application "myapp"
>
open filename
>
save as filename
>
end tell
>
end for
>
>
Could anyone tell me whether this is possible, and if so whether I need any
>
extensions, and where I might find some example code for doing this?
pre OS X OSAX rule for this job, Akua Sweets...
--
http://www.akua.com/Software/AkuaSweets/index.html
set x to the entries in (choose folder) whose types are in {"JPEG"} to a
depth of -1 as file
repeat with i in x
apply catalog info {file creator:"ogle"} to i
end repeat
--or Tanaka's which includes a unique 'name contains' parameter...
--
http://mtlab.ecn.fpu.ac.jp/
set x to MT List Files (choose folder) of type {"JPEG"} return as file
specification with sub folders
repeat with i in x
MT Change File Info i creator type "ogle"
end repeat
_____________________________ Andy
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.