Manipulating multiple files in arbitrary applications
Manipulating multiple files in arbitrary applications
- Subject: Manipulating multiple files in arbitrary applications
- From: "Hamish Allan" <email@hidden>
- Date: Tue, 13 Aug 2002 17:22:08 +0100
Hi,
I'm new to AppleScript (and Macs in general, for that matter) and I'm
wondering whether it's possible to use it to perform batch operations on
multiple files in arbitrary applications.
From what I have managed to pick up on, there are some AppleScript
extensions which allow the user to perform point-and-click operations and
type on the keyboard. But I haven't found any example scripts doing anything
similar to what I am looking to do.
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?
Many thanks in advance,
Hamish
_______________________________________________
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.