• 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
Select files of folders
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Select files of folders


  • Subject: Select files of folders
  • From: Adrien FRANCOIS <email@hidden>
  • Date: Tue, 24 May 2005 13:49:15 +0200

Title: Select files of folders
   Hye,

I try to do an applescript that print automatically Appleworks files to PDF and save them in a particular folder.
There is no problem to execute the printing action on one selected file, but I have problems to select every files of a folder and print them.

Could you explain me what is the code for this (see what I test under mac os 9 below) -> for select each item of a folder to print them.

Thanks.

I works with X.3.9. I think the “list” is not recognised under X.3.


tell application "Finder" -- fait appel à l'application Finder
   
    set the source_folder to path to current user folder as alias -- définit une variable contenant le chemin vers le répertoire home de l'utilisateur courant
   
    set theFolder to source_folder
    set theList to (every file of theFolder) as list

    set defaultNameList to "Every file of folder: " & (name of theFolder)
    set theNameList to defaultNameList
   repeat with thisItem in theList
       -- ....
   end repeat
   
    
    
end tell -- fin de l'appel au Finder

Quit


--
Adrien FRANCOIS
Architecture et système

Direction des systèmes d’information
Centre Hospitalier de Rouffach
27, rue du 4ème RSM
F- 68250 ROUFFACH
Tel
:  +33 (0)3 89 78 71 82
Fax  :  +33 (0)3 89 78 74 35

Courriel :  email@hidden
Web :  http://www.ch-rouffach.fr

 _______________________________________________
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

  • Prev by Date: Re: Folder actions steal UI foces
  • Next by Date: Re: Folder actions steal UI foces
  • Previous by thread: Re: Folder actions steal UI foces
  • Next by thread: Applescript an Automator action?
  • Index(es):
    • Date
    • Thread