• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Manipulating multiple files in arbitrary applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Manipulating multiple files in arbitrary applications
      • From: Andy Wylie <email@hidden>
    • Re: Manipulating multiple files in arbitrary applications
      • From: Jon Pugh <email@hidden>
References: 
 >Re: Manipulating multiple files in arbitrary applications (From: Andy Wylie <email@hidden>)

  • Prev by Date: RE: Xserve breaks Applescript (continued)
  • Next by Date: Re: Manipulating multiple files in arbitrary applications
  • Previous by thread: Re: Manipulating multiple files in arbitrary applications
  • Next by thread: Re: Manipulating multiple files in arbitrary applications
  • Index(es):
    • Date
    • Thread