• 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: FADE DEAD
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FADE DEAD


  • Subject: Re: FADE DEAD
  • From: has <email@hidden>
  • Date: Fri, 15 Mar 2002 00:04:10 +0000

Jon Pugh wrote:

>prop p : fromHex( "FADEDEAD")
>
>-- it won't compile, but it does run, that's why it won't compile
>
>on fromHex(hStr)
[...]
>end fromHex


Ahh, sorry to correct you here Jon:). Your script compiles fine... as long
as you put the handler *before* the property, not after it.

Useful technique too, if you want to initialise a property's contents at
compile-time. For example, if you need a property containing a list of all
ASCII characters you can't type control codes in the ASCII 0-31 range, so
you can't enter the string directly. Instead you have to write a handler
that builds the list for you, then call it from the property. But you must
remember to put the handler before the property, or it won't work.

has

http://www.barple.connectfree.co.uk/ -- The Little Page of Beta AppleScripts
_______________________________________________
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.

  • Prev by Date: Re: "tell" to a running process
  • Next by Date: "play sound"
  • Previous by thread: Re: FADE DEAD
  • Next by thread: Re: FADE DEAD
  • Index(es):
    • Date
    • Thread