Folgen Sie dem Video unten, um zu sehen, wie Sie unsere Website als Icon auf Ihrem Homescreen erstellen.
Anmerkung: This feature may not be available in some browsers.
cargo schrieb:hallo sebsebseb,
danke für die Antwort. Ich kenne mich nicht aus mit apple script, es geht aber darum, dass ich von einer Webseite, die sich täglich ändert, automatisch ein Snapshot generieren muss, um es einer anderen Anwendung zur Verfügung zu stellen. Es muss also über ein script passieren.
do shell script "screencapture"
In einem zweiten Scritt muss man das ganze dann mit einem Script fuer Safari kombinieren.(...)
-c Force screen capture to go to the clipboard.
-i Capture screen interactively, by selection or window. The con-
trol key will cause the screen shot to go to the clipboard. The
space key will toggle between mouse selection and window selec-
tion modes. The escape key will cancel the interactive screen
shot.
-m Only capture the main monitor, undefined if -i is set.
-s Only allow mouse selection mode.
-w Only allow window selection mode.
(...)
set p to path to desktop
set p to POSIX path of p
set p to p & "/test.png"
set theCommand to ("screencapture " & p)
tell application "Safari"
activate
do shell script theCommand
end tell