fixed macos x version to use appleevents
original commit: a5f2c5477efb323219e35c52bc775544c363f746
This commit is contained in:
parent
d30eb0f299
commit
6816de50a4
|
@ -15,9 +15,11 @@
|
||||||
[current-error-port null-output] ; comment out this line to see error messages
|
[current-error-port null-output] ; comment out this line to see error messages
|
||||||
[current-output-port null-output])
|
[current-output-port null-output])
|
||||||
(case (system-type)
|
(case (system-type)
|
||||||
[(macos macosx)
|
[(macos)
|
||||||
;; actually, I think GURL means something slightly different...
|
;; actually, I think GURL means something slightly different...
|
||||||
(send-event "MACS" "GURL" "GURL" str)]
|
(send-event "MACS" "GURL" "GURL" str)]
|
||||||
|
[(macosx)
|
||||||
|
(system (format "osascript -e 'open location \"~a\"'" str))]
|
||||||
[(windows)
|
[(windows)
|
||||||
(shell-execute #f str "" (current-directory) 'SW_SHOWNORMAL)]
|
(shell-execute #f str "" (current-directory) 'SW_SHOWNORMAL)]
|
||||||
[(unix)
|
[(unix)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user