Thanks a lot! Worked like a charm!

On 12.4.2022 at 12:43 AM, "Christiaan Hofman" <cmhof...@gmail.com> wrote:
>
>> On 12 Apr 2022, at 00:02, Tom Raley via Skim-app-users <skim-app-
>us...@lists.sourceforge.net> wrote:
>> 
>> Hi,
>> 
>> so far I used the following AppleScript to extract the whole 
>text of a PDF:
>> 
>>  tell application "Skim"
>>      set fileHandler to (InputPath & fileName) as text
>>      open fileHandler
>>      set theWords to (get text for document 1) as text
>>      close document 1
>>      quit
>>  end tell
>> 
>> This stopped working for some reason unknown to me with the 
>error: „for:document 1“ cannot follow this „text“. Any ideas?
>> 
>> Best regards,
>> Tom - Skim 1.6.9 (139), OS 12.2.1 (21D62)
>> 
>
>
>“get text for" is no longer supported. It should not really have 
>been used in this way anyway, it was more a side effect of the 
>fact that the “document" can be interpreted as a selection. You 
>should use the 'text’ property (’text of document 1’), not the 
>‘get text for’ command, to get the text of a document (or a page, 
>for that matter). 
>
>Christiaan



_______________________________________________
Skim-app-users mailing list
Skim-app-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-users

Reply via email to