• 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: Moving large PDF files with Applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Moving large PDF files with Applescript


  • Subject: Re: Moving large PDF files with Applescript
  • From: "Stockly, Ed" <email@hidden>
  • Date: Tue, 31 Mar 2009 15:19:25 -0700
  • Thread-topic: Moving large PDF files with Applescript

Here's another suggestion, since all the files are PDFs, something like this
should work.

set endOfPDFTag to "%%EOF"
set filesToMove to {}
set lisFiles to list folder strSource without invisibles
repeat with i from 1 to count lisFiles
        set thisPath to (strSource & (item i of lisFiles)) as string
        set fileText to read file thisPath
    if endOfPDFTag is in the last paragraph of fileText then
        set the end of filesToMove to thisPath
    end if
end repeat

HTH,

ES

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Re: Moving large PDF files with Applescript
  • Previous by thread: Re: Moving large PDF files with Applescript
  • Next by thread: Re: AppleScript-Users Digest, Vol 6, Issue 153
  • Index(es):
    • Date
    • Thread