• 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: Tex-Edit: what's wrong with this variable?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tex-Edit: what's wrong with this variable?


  • Subject: Re: Tex-Edit: what's wrong with this variable?
  • From: John Stewart <email@hidden>
  • Date: Sat, 15 Feb 2003 17:12:16 -0500

On Saturday, February 15, 2003, at 01:32 PM, Gnarlodious wrote:

Can someone tell my why this won't work? Is there some "variable conversion"
trick I need to turn Tex-Edit's internal color "black" into the results of
the variable "backgroundColor"?

set backgroundColor to "black"

tell application "Tex-Edit"
activate
tell the front window
set background color to black -- this is OK
set background color to backgroundColor -- this is unOK
End tell

-- Rachel http://www.Spectrumology.com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.



In this case "black" is a string not a color, using an RGB color specification works just fine.

set backgroundColor to {0, 0, 0}

tell application "Tex-Edit Plus"
activate
tell the front window to set background color to backgroundColor
end tell


john
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Tex-Edit: what's wrong with this variable? (From: Gnarlodious <email@hidden>)

  • Prev by Date: Re: Tex-Edit: what's wrong with this variable?
  • Next by Date: a little puzzled, quark script
  • Previous by thread: Re: Tex-Edit: what's wrong with this variable?
  • Next by thread: Re: Tex-Edit: what's wrong with this variable?
  • Index(es):
    • Date
    • Thread