It wasn't really so quiet. The link is right on the main http://www.apple.com/safari/ page.Originally posted by artistry
Apple have (quietly) released some Applescripts for Safari
Originally posted by Doctor Q
If you AppleScript programmers need a suggestion, how 'bout a simple script that prompts you for your first name and last name (e.g., Desmond Llewelyn), or lets you drag it out of your address book, then forms the You Are My Friend URL (e.g., http://Desmond.Llewelyn.youaremyfriend.com/) and finally sends you there. (If you haven't tried the You Are My Friend site, just fill in your own name and type in the URL yourself.)
Originally posted by Doctor Q
Thanks for the AppleScript, artistry. It works perfectly. In fact, it works no matter which web browser is your default, since it doesn't use anything Safari-specific.
artistry, you are my friend!
I guess I didn't give you scripters much of a challenge. OK, now I need an AppleScript that solves the following problems and formats the answers as a web page in Safari:
* What is the correct TOE (theory of everything) in physics?
* How can we prevent war and famine and cure all known diseases?
* How do you prove or disprove the Riemann Hypothesis in mathematics?
* Why is Zsa Zsa Gabor famous?
I thank you in advance.
Originally posted by Doctor Q
Now that you are done laughing at my joke (you DID laugh at my joke, didn't you?), here's a serious question.
I tried the "Full Screen" AppleScript posted at http://www.apple.com/applescript/safari/.
Supposedly, the script "hides the Dock and expands the front browser window to fill the screen".
When I run it, this line in the script:
set dock_showing to do shell script "defaults read com.apple.dock autohide"
produces this error message:
defaults[493]
The domain/default pair or
(com.apple.dock, autohide) does not exist
Why?
Originally posted by Doctor Q
Autohide on. Autohide off. Same problem. I don't really need this script to work; I was just experimenting, so don't worry about it.
Originally posted by Doctor Q
I figured out that as soon as you close a window, the meaning of "window 1", "window 2", etc. changes. What used to be "window 2" might now be "window 1". I had a good laugh at my own expense but I learned that even the simplest tasks can throw you off if you're missing a concept.