Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.comp.lang.applescript > #52

AppleScript need: Can a file open at all

From Tim Murray <TimMurray@hotmail.com>
Message-ID <0001HW.2470781D0010E5AF70000A0CA38F@SSL.usenetstorm.com> (permalink)
Subject AppleScript need: Can a file open at all
Newsgroups alt.comp.lang.applescript, apple.lists.applescript-users
Organization http://www.AltBinaries.com - Uncensored, Un-logged, Secure.
Date 2020-05-16 15:35 -0400

Cross-posted to 2 groups.

Show all headers | View raw


I recently made a gross error of formatting a disk that had good data on it. 
(My MBPro was stolen and when I got another, I ended up formatting my Time 
Machine disk. Aaarrrgh! Some computer tasks should not be performed with 
bourbon.) Anyway, I ran some recovery programs and got everything back, but 
there is one issue.

My PDFs are all named File0001.pdf, File0002.pdf, and so on, but there are 
several hundred. Acrobat and Catalina’s Quick Look and Preview can deal 
with many of them.

What I am looking for is a script to run through a folder and determine if a 
PDF can be opened or even if Quick Look works . . . I don’t need to 
actually do anything with it, just see if it can be opened. If it cannot, 
that’s okay: Trash it so that what remains are PDFs can be opened.

In a way I don’t really need this per se, because I successfully retrieved 
most, if not all, the original files that made the PDFs, such as InDesign, 
Pages, Illustrator, and so on.

So can someone here do that? Thanks.

Back to alt.comp.lang.applescript | Previous | NextNext in thread | Find similar


Thread

AppleScript need: Can a file open at all Tim Murray <TimMurray@hotmail.com> - 2020-05-16 15:35 -0400
  Re: AppleScript need: Can a file open at all Jolly Roger <jollyroger@pobox.com> - 2020-05-16 20:48 +0000
    Re: AppleScript need: Can a file open at all Tim Murray <TimMurray@hotmail.com> - 2020-05-20 17:34 -0400
      Re: AppleScript need: Can a file open at all Jolly Roger <jollyroger@pobox.com> - 2020-05-20 23:10 +0000
        Re: AppleScript need: Can a file open at all Tim Murray <TimMurray@hotmail.com> - 2020-05-24 10:36 -0400

csiph-web