Preview.app only auto-refreshes if you alt-tab to it
I'm working on a program that generates an image. I can keep the image open in Preview and when the image changes, Preview refreshes it, but only when I alt-tab (sorry, command-tab) to it. I'd like to keep the image in view and have it auto-refresh without touching it. Is that possible?
(One ridiculous way I've found to do this is with a script that converts the image to a PDF file which I can keep open in Skim.app (a PDF reader) which has that ability.)
macos images preview
add a comment |
I'm working on a program that generates an image. I can keep the image open in Preview and when the image changes, Preview refreshes it, but only when I alt-tab (sorry, command-tab) to it. I'd like to keep the image in view and have it auto-refresh without touching it. Is that possible?
(One ridiculous way I've found to do this is with a script that converts the image to a PDF file which I can keep open in Skim.app (a PDF reader) which has that ability.)
macos images preview
A program does not have a feature you want it to have, and using another application to solve your problem is a "ridiculous way"?
– Daniel Beck♦
Jan 12 '11 at 5:37
3
The conversion to PDF is what makes it an ugly solution. If Skim.app could view images (like .png) it would be a great solution.
– dreeves
Jan 12 '11 at 7:48
add a comment |
I'm working on a program that generates an image. I can keep the image open in Preview and when the image changes, Preview refreshes it, but only when I alt-tab (sorry, command-tab) to it. I'd like to keep the image in view and have it auto-refresh without touching it. Is that possible?
(One ridiculous way I've found to do this is with a script that converts the image to a PDF file which I can keep open in Skim.app (a PDF reader) which has that ability.)
macos images preview
I'm working on a program that generates an image. I can keep the image open in Preview and when the image changes, Preview refreshes it, but only when I alt-tab (sorry, command-tab) to it. I'd like to keep the image in view and have it auto-refresh without touching it. Is that possible?
(One ridiculous way I've found to do this is with a script that converts the image to a PDF file which I can keep open in Skim.app (a PDF reader) which has that ability.)
macos images preview
macos images preview
asked Jan 12 '11 at 1:58
dreevesdreeves
4561817
4561817
A program does not have a feature you want it to have, and using another application to solve your problem is a "ridiculous way"?
– Daniel Beck♦
Jan 12 '11 at 5:37
3
The conversion to PDF is what makes it an ugly solution. If Skim.app could view images (like .png) it would be a great solution.
– dreeves
Jan 12 '11 at 7:48
add a comment |
A program does not have a feature you want it to have, and using another application to solve your problem is a "ridiculous way"?
– Daniel Beck♦
Jan 12 '11 at 5:37
3
The conversion to PDF is what makes it an ugly solution. If Skim.app could view images (like .png) it would be a great solution.
– dreeves
Jan 12 '11 at 7:48
A program does not have a feature you want it to have, and using another application to solve your problem is a "ridiculous way"?
– Daniel Beck♦
Jan 12 '11 at 5:37
A program does not have a feature you want it to have, and using another application to solve your problem is a "ridiculous way"?
– Daniel Beck♦
Jan 12 '11 at 5:37
3
3
The conversion to PDF is what makes it an ugly solution. If Skim.app could view images (like .png) it would be a great solution.
– dreeves
Jan 12 '11 at 7:48
The conversion to PDF is what makes it an ugly solution. If Skim.app could view images (like .png) it would be a great solution.
– dreeves
Jan 12 '11 at 7:48
add a comment |
7 Answers
7
active
oldest
votes
Open AppleScript Editor and enter the following:
tell application "Preview" to activate
tell application "AppleScript Editor" to activate
Replace the second application's name with the program you want to have frontmost. Save as scpt
and incorporate a call to this script into your program to refresh Preview:
osascript refresh-preview.scpt
You can alternatively use Automator
to create a Service that receives no input with the Run AppleScript action and the above code. Save, and assign a keyboard shortcut in System Preferences. Not exactly automatic, but easier than getting the mouse to focus Preview.
Using the program open
would be another idea, although using the switch -g
(don't bring to foreground) opens the file in a new preview window every time its been modified, even if it's already open. All windows get updated though, without being brought to the foreground.
Oh! This is perfect! It looks like open -g image.png actually does exactly what I want. It doesn't seem to open a new preview window each time. Thanks so much for the help!
– dreeves
Jan 12 '11 at 10:57
@dreeves Probably depends on the way your program handles changes to the file. I tried it with Automator and the rotate image action, and it behaved as I describe.
– Daniel Beck♦
Jan 12 '11 at 11:05
add a comment |
Visual Studio Code allows you to open images and will also refresh them automatically without any interaction needed.
Why the downvote? Quoting the asker "If Skim.app [with it's auto refresh feature] could view images (like .png) it would be a great solution". Visual Studio Code is free, unlike XEE which has already been mentioned.
– Ivar Refsdal
Aug 21 '16 at 19:26
This is a very helpful answer! I will try it next time I need this. I'm just worried that opening Visual Studio just to view images could be too heavyweight.
– dreeves
Aug 21 '16 at 20:33
Atom, another code editor, has the same ability with a little less interface showing. (They are very similar.)
– Nabha
Feb 9 at 6:56
add a comment |
You can use XEE, it's an image preview software that includes autorefresh. (http://xee.c3.cx/)
If this helps anyone: this worked for me for small files, but on large (~17 mb) tiff files, it had a second of static between refreshes. I needed to it for a presentation, so it was almost but not quite the right solution.
– Nabha
Feb 9 at 6:44
add a comment |
You could use applescript to give Preview focus every x seconds.
Can you elaborate on how to do that?
– fixer1234
Feb 9 at 7:17
Activate Preview as done in Daniel Beck's answer. But with adelay
command too.
– ocodo
Feb 9 at 12:02
add a comment |
You can perform the task simply by appending the following alias to your shell startup scripts (bashrc (or similar))
alias prefresh='echo "tell application "Preview" to activate" | osascript -'
Then just invoke the alias when you need it.
add a comment |
Apollo One (macOS only) seems to do a good job of this, even when running full-screen and not being tabbed to.
It's a basic image viewer. All I had to do was open the correct image and it would reload as the image file changed, even at full screen on a second monitor.
It did crash on me at one point when there was very high CPU usage and I had to reload it. Just something to be aware of.
Also, if you have trouble with it switching to another image in the same folder, the thing to do is just to make sure it's the only image in the folder.
See also the Apollo One webpage (seems to be down at the moment though).
1
Good guidance on recommending software here: meta.superuser.com/questions/5329/….
– fixer1234
Feb 9 at 7:20
add a comment |
You can open the image in Safari and run an AppleScript to reload it without activating the window:
tell application "Safari"
set docUrl to URL of document 1
set URL of document 1 to docUrl
end tell
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f232067%2fpreview-app-only-auto-refreshes-if-you-alt-tab-to-it%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
7 Answers
7
active
oldest
votes
7 Answers
7
active
oldest
votes
active
oldest
votes
active
oldest
votes
Open AppleScript Editor and enter the following:
tell application "Preview" to activate
tell application "AppleScript Editor" to activate
Replace the second application's name with the program you want to have frontmost. Save as scpt
and incorporate a call to this script into your program to refresh Preview:
osascript refresh-preview.scpt
You can alternatively use Automator
to create a Service that receives no input with the Run AppleScript action and the above code. Save, and assign a keyboard shortcut in System Preferences. Not exactly automatic, but easier than getting the mouse to focus Preview.
Using the program open
would be another idea, although using the switch -g
(don't bring to foreground) opens the file in a new preview window every time its been modified, even if it's already open. All windows get updated though, without being brought to the foreground.
Oh! This is perfect! It looks like open -g image.png actually does exactly what I want. It doesn't seem to open a new preview window each time. Thanks so much for the help!
– dreeves
Jan 12 '11 at 10:57
@dreeves Probably depends on the way your program handles changes to the file. I tried it with Automator and the rotate image action, and it behaved as I describe.
– Daniel Beck♦
Jan 12 '11 at 11:05
add a comment |
Open AppleScript Editor and enter the following:
tell application "Preview" to activate
tell application "AppleScript Editor" to activate
Replace the second application's name with the program you want to have frontmost. Save as scpt
and incorporate a call to this script into your program to refresh Preview:
osascript refresh-preview.scpt
You can alternatively use Automator
to create a Service that receives no input with the Run AppleScript action and the above code. Save, and assign a keyboard shortcut in System Preferences. Not exactly automatic, but easier than getting the mouse to focus Preview.
Using the program open
would be another idea, although using the switch -g
(don't bring to foreground) opens the file in a new preview window every time its been modified, even if it's already open. All windows get updated though, without being brought to the foreground.
Oh! This is perfect! It looks like open -g image.png actually does exactly what I want. It doesn't seem to open a new preview window each time. Thanks so much for the help!
– dreeves
Jan 12 '11 at 10:57
@dreeves Probably depends on the way your program handles changes to the file. I tried it with Automator and the rotate image action, and it behaved as I describe.
– Daniel Beck♦
Jan 12 '11 at 11:05
add a comment |
Open AppleScript Editor and enter the following:
tell application "Preview" to activate
tell application "AppleScript Editor" to activate
Replace the second application's name with the program you want to have frontmost. Save as scpt
and incorporate a call to this script into your program to refresh Preview:
osascript refresh-preview.scpt
You can alternatively use Automator
to create a Service that receives no input with the Run AppleScript action and the above code. Save, and assign a keyboard shortcut in System Preferences. Not exactly automatic, but easier than getting the mouse to focus Preview.
Using the program open
would be another idea, although using the switch -g
(don't bring to foreground) opens the file in a new preview window every time its been modified, even if it's already open. All windows get updated though, without being brought to the foreground.
Open AppleScript Editor and enter the following:
tell application "Preview" to activate
tell application "AppleScript Editor" to activate
Replace the second application's name with the program you want to have frontmost. Save as scpt
and incorporate a call to this script into your program to refresh Preview:
osascript refresh-preview.scpt
You can alternatively use Automator
to create a Service that receives no input with the Run AppleScript action and the above code. Save, and assign a keyboard shortcut in System Preferences. Not exactly automatic, but easier than getting the mouse to focus Preview.
Using the program open
would be another idea, although using the switch -g
(don't bring to foreground) opens the file in a new preview window every time its been modified, even if it's already open. All windows get updated though, without being brought to the foreground.
edited Jan 12 '11 at 10:05
answered Jan 12 '11 at 9:41
Daniel Beck♦Daniel Beck
93.1k12236288
93.1k12236288
Oh! This is perfect! It looks like open -g image.png actually does exactly what I want. It doesn't seem to open a new preview window each time. Thanks so much for the help!
– dreeves
Jan 12 '11 at 10:57
@dreeves Probably depends on the way your program handles changes to the file. I tried it with Automator and the rotate image action, and it behaved as I describe.
– Daniel Beck♦
Jan 12 '11 at 11:05
add a comment |
Oh! This is perfect! It looks like open -g image.png actually does exactly what I want. It doesn't seem to open a new preview window each time. Thanks so much for the help!
– dreeves
Jan 12 '11 at 10:57
@dreeves Probably depends on the way your program handles changes to the file. I tried it with Automator and the rotate image action, and it behaved as I describe.
– Daniel Beck♦
Jan 12 '11 at 11:05
Oh! This is perfect! It looks like open -g image.png actually does exactly what I want. It doesn't seem to open a new preview window each time. Thanks so much for the help!
– dreeves
Jan 12 '11 at 10:57
Oh! This is perfect! It looks like open -g image.png actually does exactly what I want. It doesn't seem to open a new preview window each time. Thanks so much for the help!
– dreeves
Jan 12 '11 at 10:57
@dreeves Probably depends on the way your program handles changes to the file. I tried it with Automator and the rotate image action, and it behaved as I describe.
– Daniel Beck♦
Jan 12 '11 at 11:05
@dreeves Probably depends on the way your program handles changes to the file. I tried it with Automator and the rotate image action, and it behaved as I describe.
– Daniel Beck♦
Jan 12 '11 at 11:05
add a comment |
Visual Studio Code allows you to open images and will also refresh them automatically without any interaction needed.
Why the downvote? Quoting the asker "If Skim.app [with it's auto refresh feature] could view images (like .png) it would be a great solution". Visual Studio Code is free, unlike XEE which has already been mentioned.
– Ivar Refsdal
Aug 21 '16 at 19:26
This is a very helpful answer! I will try it next time I need this. I'm just worried that opening Visual Studio just to view images could be too heavyweight.
– dreeves
Aug 21 '16 at 20:33
Atom, another code editor, has the same ability with a little less interface showing. (They are very similar.)
– Nabha
Feb 9 at 6:56
add a comment |
Visual Studio Code allows you to open images and will also refresh them automatically without any interaction needed.
Why the downvote? Quoting the asker "If Skim.app [with it's auto refresh feature] could view images (like .png) it would be a great solution". Visual Studio Code is free, unlike XEE which has already been mentioned.
– Ivar Refsdal
Aug 21 '16 at 19:26
This is a very helpful answer! I will try it next time I need this. I'm just worried that opening Visual Studio just to view images could be too heavyweight.
– dreeves
Aug 21 '16 at 20:33
Atom, another code editor, has the same ability with a little less interface showing. (They are very similar.)
– Nabha
Feb 9 at 6:56
add a comment |
Visual Studio Code allows you to open images and will also refresh them automatically without any interaction needed.
Visual Studio Code allows you to open images and will also refresh them automatically without any interaction needed.
edited Aug 21 '16 at 19:32
answered Aug 20 '16 at 19:27
Ivar RefsdalIvar Refsdal
512
512
Why the downvote? Quoting the asker "If Skim.app [with it's auto refresh feature] could view images (like .png) it would be a great solution". Visual Studio Code is free, unlike XEE which has already been mentioned.
– Ivar Refsdal
Aug 21 '16 at 19:26
This is a very helpful answer! I will try it next time I need this. I'm just worried that opening Visual Studio just to view images could be too heavyweight.
– dreeves
Aug 21 '16 at 20:33
Atom, another code editor, has the same ability with a little less interface showing. (They are very similar.)
– Nabha
Feb 9 at 6:56
add a comment |
Why the downvote? Quoting the asker "If Skim.app [with it's auto refresh feature] could view images (like .png) it would be a great solution". Visual Studio Code is free, unlike XEE which has already been mentioned.
– Ivar Refsdal
Aug 21 '16 at 19:26
This is a very helpful answer! I will try it next time I need this. I'm just worried that opening Visual Studio just to view images could be too heavyweight.
– dreeves
Aug 21 '16 at 20:33
Atom, another code editor, has the same ability with a little less interface showing. (They are very similar.)
– Nabha
Feb 9 at 6:56
Why the downvote? Quoting the asker "If Skim.app [with it's auto refresh feature] could view images (like .png) it would be a great solution". Visual Studio Code is free, unlike XEE which has already been mentioned.
– Ivar Refsdal
Aug 21 '16 at 19:26
Why the downvote? Quoting the asker "If Skim.app [with it's auto refresh feature] could view images (like .png) it would be a great solution". Visual Studio Code is free, unlike XEE which has already been mentioned.
– Ivar Refsdal
Aug 21 '16 at 19:26
This is a very helpful answer! I will try it next time I need this. I'm just worried that opening Visual Studio just to view images could be too heavyweight.
– dreeves
Aug 21 '16 at 20:33
This is a very helpful answer! I will try it next time I need this. I'm just worried that opening Visual Studio just to view images could be too heavyweight.
– dreeves
Aug 21 '16 at 20:33
Atom, another code editor, has the same ability with a little less interface showing. (They are very similar.)
– Nabha
Feb 9 at 6:56
Atom, another code editor, has the same ability with a little less interface showing. (They are very similar.)
– Nabha
Feb 9 at 6:56
add a comment |
You can use XEE, it's an image preview software that includes autorefresh. (http://xee.c3.cx/)
If this helps anyone: this worked for me for small files, but on large (~17 mb) tiff files, it had a second of static between refreshes. I needed to it for a presentation, so it was almost but not quite the right solution.
– Nabha
Feb 9 at 6:44
add a comment |
You can use XEE, it's an image preview software that includes autorefresh. (http://xee.c3.cx/)
If this helps anyone: this worked for me for small files, but on large (~17 mb) tiff files, it had a second of static between refreshes. I needed to it for a presentation, so it was almost but not quite the right solution.
– Nabha
Feb 9 at 6:44
add a comment |
You can use XEE, it's an image preview software that includes autorefresh. (http://xee.c3.cx/)
You can use XEE, it's an image preview software that includes autorefresh. (http://xee.c3.cx/)
answered Jul 29 '16 at 16:25
Daniel777Daniel777
1513
1513
If this helps anyone: this worked for me for small files, but on large (~17 mb) tiff files, it had a second of static between refreshes. I needed to it for a presentation, so it was almost but not quite the right solution.
– Nabha
Feb 9 at 6:44
add a comment |
If this helps anyone: this worked for me for small files, but on large (~17 mb) tiff files, it had a second of static between refreshes. I needed to it for a presentation, so it was almost but not quite the right solution.
– Nabha
Feb 9 at 6:44
If this helps anyone: this worked for me for small files, but on large (~17 mb) tiff files, it had a second of static between refreshes. I needed to it for a presentation, so it was almost but not quite the right solution.
– Nabha
Feb 9 at 6:44
If this helps anyone: this worked for me for small files, but on large (~17 mb) tiff files, it had a second of static between refreshes. I needed to it for a presentation, so it was almost but not quite the right solution.
– Nabha
Feb 9 at 6:44
add a comment |
You could use applescript to give Preview focus every x seconds.
Can you elaborate on how to do that?
– fixer1234
Feb 9 at 7:17
Activate Preview as done in Daniel Beck's answer. But with adelay
command too.
– ocodo
Feb 9 at 12:02
add a comment |
You could use applescript to give Preview focus every x seconds.
Can you elaborate on how to do that?
– fixer1234
Feb 9 at 7:17
Activate Preview as done in Daniel Beck's answer. But with adelay
command too.
– ocodo
Feb 9 at 12:02
add a comment |
You could use applescript to give Preview focus every x seconds.
You could use applescript to give Preview focus every x seconds.
answered Jan 12 '11 at 2:05
ocodoocodo
1,54211721
1,54211721
Can you elaborate on how to do that?
– fixer1234
Feb 9 at 7:17
Activate Preview as done in Daniel Beck's answer. But with adelay
command too.
– ocodo
Feb 9 at 12:02
add a comment |
Can you elaborate on how to do that?
– fixer1234
Feb 9 at 7:17
Activate Preview as done in Daniel Beck's answer. But with adelay
command too.
– ocodo
Feb 9 at 12:02
Can you elaborate on how to do that?
– fixer1234
Feb 9 at 7:17
Can you elaborate on how to do that?
– fixer1234
Feb 9 at 7:17
Activate Preview as done in Daniel Beck's answer. But with a
delay
command too.– ocodo
Feb 9 at 12:02
Activate Preview as done in Daniel Beck's answer. But with a
delay
command too.– ocodo
Feb 9 at 12:02
add a comment |
You can perform the task simply by appending the following alias to your shell startup scripts (bashrc (or similar))
alias prefresh='echo "tell application "Preview" to activate" | osascript -'
Then just invoke the alias when you need it.
add a comment |
You can perform the task simply by appending the following alias to your shell startup scripts (bashrc (or similar))
alias prefresh='echo "tell application "Preview" to activate" | osascript -'
Then just invoke the alias when you need it.
add a comment |
You can perform the task simply by appending the following alias to your shell startup scripts (bashrc (or similar))
alias prefresh='echo "tell application "Preview" to activate" | osascript -'
Then just invoke the alias when you need it.
You can perform the task simply by appending the following alias to your shell startup scripts (bashrc (or similar))
alias prefresh='echo "tell application "Preview" to activate" | osascript -'
Then just invoke the alias when you need it.
answered Dec 10 '14 at 12:15
bryan_bashobryan_basho
235
235
add a comment |
add a comment |
Apollo One (macOS only) seems to do a good job of this, even when running full-screen and not being tabbed to.
It's a basic image viewer. All I had to do was open the correct image and it would reload as the image file changed, even at full screen on a second monitor.
It did crash on me at one point when there was very high CPU usage and I had to reload it. Just something to be aware of.
Also, if you have trouble with it switching to another image in the same folder, the thing to do is just to make sure it's the only image in the folder.
See also the Apollo One webpage (seems to be down at the moment though).
1
Good guidance on recommending software here: meta.superuser.com/questions/5329/….
– fixer1234
Feb 9 at 7:20
add a comment |
Apollo One (macOS only) seems to do a good job of this, even when running full-screen and not being tabbed to.
It's a basic image viewer. All I had to do was open the correct image and it would reload as the image file changed, even at full screen on a second monitor.
It did crash on me at one point when there was very high CPU usage and I had to reload it. Just something to be aware of.
Also, if you have trouble with it switching to another image in the same folder, the thing to do is just to make sure it's the only image in the folder.
See also the Apollo One webpage (seems to be down at the moment though).
1
Good guidance on recommending software here: meta.superuser.com/questions/5329/….
– fixer1234
Feb 9 at 7:20
add a comment |
Apollo One (macOS only) seems to do a good job of this, even when running full-screen and not being tabbed to.
It's a basic image viewer. All I had to do was open the correct image and it would reload as the image file changed, even at full screen on a second monitor.
It did crash on me at one point when there was very high CPU usage and I had to reload it. Just something to be aware of.
Also, if you have trouble with it switching to another image in the same folder, the thing to do is just to make sure it's the only image in the folder.
See also the Apollo One webpage (seems to be down at the moment though).
Apollo One (macOS only) seems to do a good job of this, even when running full-screen and not being tabbed to.
It's a basic image viewer. All I had to do was open the correct image and it would reload as the image file changed, even at full screen on a second monitor.
It did crash on me at one point when there was very high CPU usage and I had to reload it. Just something to be aware of.
Also, if you have trouble with it switching to another image in the same folder, the thing to do is just to make sure it's the only image in the folder.
See also the Apollo One webpage (seems to be down at the moment though).
edited Feb 12 at 23:12
answered Feb 9 at 6:59
NabhaNabha
1134
1134
1
Good guidance on recommending software here: meta.superuser.com/questions/5329/….
– fixer1234
Feb 9 at 7:20
add a comment |
1
Good guidance on recommending software here: meta.superuser.com/questions/5329/….
– fixer1234
Feb 9 at 7:20
1
1
Good guidance on recommending software here: meta.superuser.com/questions/5329/….
– fixer1234
Feb 9 at 7:20
Good guidance on recommending software here: meta.superuser.com/questions/5329/….
– fixer1234
Feb 9 at 7:20
add a comment |
You can open the image in Safari and run an AppleScript to reload it without activating the window:
tell application "Safari"
set docUrl to URL of document 1
set URL of document 1 to docUrl
end tell
add a comment |
You can open the image in Safari and run an AppleScript to reload it without activating the window:
tell application "Safari"
set docUrl to URL of document 1
set URL of document 1 to docUrl
end tell
add a comment |
You can open the image in Safari and run an AppleScript to reload it without activating the window:
tell application "Safari"
set docUrl to URL of document 1
set URL of document 1 to docUrl
end tell
You can open the image in Safari and run an AppleScript to reload it without activating the window:
tell application "Safari"
set docUrl to URL of document 1
set URL of document 1 to docUrl
end tell
edited Dec 6 '16 at 8:06
3498DB
15.8k114762
15.8k114762
answered Nov 29 '16 at 14:25
rogualrogual
101
101
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f232067%2fpreview-app-only-auto-refreshes-if-you-alt-tab-to-it%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
A program does not have a feature you want it to have, and using another application to solve your problem is a "ridiculous way"?
– Daniel Beck♦
Jan 12 '11 at 5:37
3
The conversion to PDF is what makes it an ugly solution. If Skim.app could view images (like .png) it would be a great solution.
– dreeves
Jan 12 '11 at 7:48