Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3773

AppleScript, closing multiple documents

$
0
0

Hello,
I would like to create an AppleScript for Preview to close all open documents with a particular string in their title, e.g.

tell application "Preview"
	try
		close all documents whose title contains ("Jane Doe")
	end try
end tell

That does not run - Syntax Error Expected end of line but found plural class name.

Any suggestions will be appreciated.

Thanks.

Lennox

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 3773

Trending Articles