630: Preview Deep Dive

2 Likes

Iā€™ve just started and Iā€™m really looking forward to this (whether or not I end up with some new skills).

Currently, I feel like Keyboard Maestro and Preview are the two tools that really make my Mac much nicer to use than my work Windows machine.

(Thereā€™s loads of other stuff too, but these are key).

1 Like

1) Copy App Icons Even Easier/Faster

@ismh and others - you can get an app icon even easier than the iDownloadBlog article suggests. That might have been the way to do it in 2014, but itā€™s definitely easier now

  • select the app in Finder
  • press āŒ˜C
  • go to Preview.app
  • File > New From Clipboard.

VoilĆ !

You donā€™t need to use ā€œGet Infoā€ at all.

2) Get Your Proxy Icons Back

In Monterey, you can get your proxy icons back easily!

Go to System Preferences Ā» Accessibility Ā» Display and check the box next to ā€œShow window title iconsā€ as shown below:

3) Revive ā€œSave As!ā€ Banish ā€œDuplicate!ā€

I wrote about this one a long time ago but I re-post it every few years because it seems so easily forgotten or missed or ā€œI didnā€™t know that!ā€

ā€œSave Asā€ Isnā€™t Gone, Itā€™s Just Hidden

Longtime Mac users know that ā€œSave Asā€ was ā‡§āŒ˜S but Apple changed that in Lion to ā€œDuplicateā€ which no one asked for, and Iā€™ve never met anyone who likes it.

However, if you click on the ā€œFileā€ menu and hold down the Option key, ā€œSave Asā€¦ā€ will reappear! Or you can just press āŒ„āŒ˜S to use ā€œSave Asā€¦ā€!

But what we really want is to have ā€œSave Asā€¦ā€ restored to its rightful place.

Even better, weā€™d like to banish ā€œDuplicateā€ to never be seen again.

We can do this. We have the technology.

Get Save Asā€¦ Back

First, go to System Preferences Ā» Keyboard Ā» App Shortcuts.

Then. click the + button as shown here:

Set "Application to ā€œAll Applicationsā€

Enter ā€œSave Asā€¦ā€ as the ā€œMenu Titleā€

Use ā‡§āŒ˜S as the Keyboard Shortcut, like so:

Click ā€œAddā€

Banish ā€œDuplicateā€

If you just do the above step, ā€œDuplicateā€ will appear in the ā€œFileā€ menu under ā€œSave Asā€¦ā€

If thatā€™s what you want, stop reading.

However, if you never use ā€œDuplicateā€ and want to get rid of it, repeat the same process as above, but this time set the ā€œMenu Titleā€ to ā€œDuplicateā€ and the Keyboard Shortcut to āŒ„āŒ˜S like this:

Now when you go to the ā€œFileā€ menu, you will see ā€œSave Asā€ but you wonā€™t see ā€œDuplicateā€ unless you hold down Option.

VoilĆ  Again!

28 Likes

Text boxes werenā€™t always placed in the center of the document. I canā€™t remember when it changed, but I do remember the change because it was pretty frustrating. The text box used to go wherever the cursor was clicked and could be drawn to whatever size was needed.

2 Likes

I use the ā€œNew from clipboardā€ command all the time, so much so it is a merry confluence between KM and Preview. I have it set so that Hyperkey+P attempts to create a new document in Preview with the clipboard contents.

My most common use case is that I have taken a screenshot. I always have the screenshot set to go to the clipboard, so I donā€™t ever change those settings making life simpler there, then if I want it in Preview I simply tap Hyperkey+P to get it. If I just want to save the screenshot, which is uncommon for me, I put it in Preview then save it somewhere.

3 Likes

Awesome post, thanks :+1:

1 Like

Preview does have a redact option, it was added in Big Sur apparently.
Itā€™s the third icon from the left when you are in the editing tools, and it works to redact by selecting text or you can draw a rectangle.

Here is the Apple support article.

3 Likes

ā€œNew from clipboardā€ sounds like a great idea, but my menu item is greyed out. Any suggestions? (monterey, M1 macbook air)

Whatā€™s on your clipboard?
Going from a screenshot should work, or CMD-C a png in finder.

Same happened to me. I got it to work by relaunching Preview, then did a test copy of part of an image within Preview. At this point New from Clipboard was no longer greyed out. Once that worked I went back to the copying of icons stuff and it worked.
New from Clipboard is always greyed out when there isnā€™t something suitable on the clipboard, but no idea why it was misbehaving like that in the fist place. For me at least the problem wasnā€™t permanent.

Great idea! I didnā€™t realize you could override an existing shortcut and the way it appears in the menu in this way. :+1:

I use the āŒ˜N shortcut for this. Super handy to send screenshots to Preview, for example.

I appreciate getting the proxy icons back (just upgraded to Monterey yesterday!). But you will have to mark me down as one person who uses Duplicate and understands the paradigm. Apple did a poor job of promoting when they introduced it in Lion, and it wasnā€™t fully adopted by third-party apps. This was just one of several changes made including Auto-save and Resume, Versions, and document locking (since dropped).

2 Likes

If you want both, you can reassign the Save As shortcut to command shift S and keep Duplicate too - if you assign it to anything other than option command S it will stay at the top level.

FWIW.

Had reason to find out recently that Preview has a handy Redact tool which is destructive and worked super well for my usecase

2 Likes

Stephen is looking for an easy way to strip location data from images. Iā€™ve used this with no probs for a few years (though it doesnā€™t do HEIC images): ImageOptim ā€” better Save for Web

1 Like

ā€œClose and Deleteā€ currently open file in Preview

This thread also made me realize that I have a Keyboard Maestro macro to delete the current file in Preview which you can download from Dropbox from that link.

This is handy when Iā€™m done with a file, usually an image that Iā€™ve downloaded, and then decide that I no longer need it. I hope @MacSparky will like it since it combines AppleScript and Keyboard Maestro :wink:

(The name ā€œClose & Deleteā€ comes from BBEdit which has a similar feature for text files.)

Itā€™s fairly simple, 3 steps:

  1. Get the name/path of the file
try
	tell document 1 of application "Preview"
		set f to path
	end tell
end try
return f
  1. Show the user a prompt that includes the file name:

  1. If the user selects ā€˜Move to Trashā€™ then do this
try
	
	tell document 1 of application "Preview"
		set f to path
		close
	end tell
	
	POSIX file f
	
	tell application "Finder" to move result to trash
	
end try

Hereā€™s what it looks like in Keyboard Maestro:

1 Like

Thatā€™s a simple solution I never thought ofā€¦I am starting to get more into applescript and shell scripts for KM though. Thanks for sharing this.

I used to have a need to open the current Preview pdf in a different app, e.g., PDF Expert.
I can see now that TJā€™s script could easily be adapted to do that task, so I have adapted it with this little script:

try
	
	tell document 1 of application "Preview"
		set f to path
		close
	end tell
	
	tell application "Pixelmator Pro" to open f
	
end try

Using an IF statement, my version now opens the current file in PDF Expert if it is a PDF, or attempts to open it in Pixelmator Pro if itā€™s not.

1 Like

Oh, Yeah - Thanks so much for this - I didnā€™t even think about it, but I did miss Save As - and this does the trick. I owe you a coffee!!

2 Likes

Legend! I could recall there was a fix for this having did it a few OSā€™s ago but i could not recall the steps.

Thank you so much.

Can run Accessibility tests and set alt text on PDFs in Preview? I work at a university so all our documentation has to be compliant with Web Content Accessibility Guidelines (WCAG) 2.0. Acrobat is sort of a nightmare for this.