• 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: open different files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: open different files


  • Subject: Re: open different files
  • From: Bastiaan Boertien <email@hidden>
  • Date: Thu, 7 Jul 2005 14:46:18 +0200

tell application "theApplication"
	close every document without saving --depends on the application
end tell

set theFolder to (choose folder) as string

set theFileList to list folder theFolder

repeat with x from 1 to count theFileList
saveFile((item x of theFileList),"path:to:save.file")
end

on saveFile(sourceFile,targetFile)
--if it is only a

tell application "theapplication"
open source file
--do wat you want
save document 1 to targetFile --it also depends on the application
end tell


bastiaan Op 7-jul-05 om 12:30 heeft Jürgen Keser het volgende geschreven:

Hi,

I've got an problem with applescript but I think that there is
an easy solution. I've got an folder that contains many
files. I want to open all the files (one after the other)
with an special program and save the files with the programm in
another folder.

Is there an easy way to do this with applescript?

Thanks in advance.

Jürgen


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >open different files (From: Jürgen Keser <email@hidden>)

  • Prev by Date: Re: open different files
  • Next by Date: Re: easy one: current date in Paris
  • Previous by thread: Re: open different files
  • Next by thread: Mail wont save my account settings
  • Index(es):
    • Date
    • Thread