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

Re: Try these


  • Subject: Re: Try these
  • From: JollyRoger <email@hidden>
  • Date: Sun, 17 Mar 2002 19:10:52 -0600

On 3/17/2002 5:22 PM, "Michelle Steiner" <email@hidden> wrote:

> display dialog "your text goes here" buttons {integer}
> display dialog "your text goes here" buttons {real}
> display dialog "your text goes here" buttons {string}
> display dialog "your text goes here" buttons {boolean}
> display dialog "your text goes here" buttons {alias}
> display dialog "your text goes here" buttons {folder}
> display dialog "your text goes here" buttons {class}
> display dialog "your text goes here" buttons {property}
>
> I think those are enough for the time being, but try them all.

Yep, neat. AppleScript is displaying the four-character codes corresponding
to the data types you specified.

For example, the Macintosh API defines "alias" in AEDataModel.h as:

typeAlias = FOUR_CHAR_CODE('alis')

And "string" is defined as:

typeChar = FOUR_CHAR_CODE('TEXT')

Programmers use these constants (typeAlias, typeChar, etc.) in scriptable
apps & scripting additions to refer to these data types.

JR
_______________________________________________
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: 
 >Try these (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: theSIMS -- Applescript copy paste from Explorer
  • Next by Date: Re: scripting 'mail' from OS X
  • Previous by thread: Try these
  • Next by thread: Re: Try these
  • Index(es):
    • Date
    • Thread