Re: Moving large PDF files with Applescript
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