• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: New sticky with content
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New sticky with content


  • Subject: Re: New sticky with content
  • From: Ed Stockly <email@hidden>
  • Date: Tue, 5 Feb 2008 18:39:51 -0800

>>>I am trying to write an AppleScript that starts up a new sticky and
writes some new content into it.

>>> At the moment my script looks like...

You are so close!

Try this:

-----------
set myValue to "Hello world"
tell application "System Events"
  tell application "Stickies" to activate
  tell process "Stickies" to keystroke "n" using command down
  tell process "Stickies" to keystroke myValue
end tell
-----------
>>>PS Please be gentle I am an AppleScript newbie.

Well you've come to the right place.

You're starting off by scripting an unscriptable application ("Stickies") which is not appleScript at its best.

If you really want to learn applescript try working with some scriptable applications.

And this list is a good place to go for guidance.

HTH

ES


_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Prev by Date: Re: Unsubscribe
  • Next by Date: Re: Unsubscribe
  • Previous by thread: New sticky with content
  • Next by thread: Scripting PowerPoint save command
  • Index(es):
    • Date
    • Thread