Re: Manipulating multiple files in arbitrary applications
Re: Manipulating multiple files in arbitrary applications
- Subject: Re: Manipulating multiple files in arbitrary applications
- From: Jon Pugh <email@hidden>
- Date: Wed, 14 Aug 2002 20:59:09 -0700
At 8:57 PM +1200 8/14/02, Andy Wylie wrote:
>
>for filename in "folder" plus subfolders
>
> tell application "myapp"
>
> open filename
>
> save as filename
>
> end tell
>
>end for
From the Jon's Commands documentation:
on open (theFiles)
script foo
property fileList : {}
on open (theFile)
tell application "myapp"
open filename
save as filename
end tell
end open
end script
set fl to walk folders theFiles with script foo only using files of type {"TEXT", "osas"}
display dialog (number of items of fl) as string
end open
This works fine on 9 & X, assuming you can find the X version as it has no link. I'll have to get around to that I suppose. It seems to be working well enough on Mac OS X.
Jon
_______________________________________________
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.