• 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
Don't get it.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Don't get it.


  • Subject: Don't get it.
  • From: Todd Geist <email@hidden>
  • Date: Wed, 13 Dec 2006 18:35:52 -0800

Hello everyone,

I am trying to understand how something works

I have a variable called "my_string". It is a list of one item of class utxt.

if I push it through text Wrangler like so

	tell application "TextWrangler"
		set the text of document 1 to my_string
		set my_string to the text of document 1 as string
	end tell

it comes out as TEXT and works great when I pass it to the AppleEventData.osax

If however I just try to cast the variable as a String like so

	set my_string to my_string as string

it still comes out as TEXT, But the OSAX doesn't like it.

So the question is what is Text Wrangler doing to the string? And how can I do it without using Text Wrangler?

Any ideas

Todd


Todd Geist email@hidden

_______________________________________________
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/mailman//archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Don't get it.
      • From: Emmanuel <email@hidden>
    • Re: strings and strings (was Don't get it.)
      • From: Sander Tekelenburg <email@hidden>
    • Re: Don't get it.
      • From: "Mark J. Reed" <email@hidden>
  • Prev by Date: Re: Trigonometry
  • Next by Date: Re: Ask Skype to complete their AS interface
  • Previous by thread: Re: Trigonometry
  • Next by thread: Re: Don't get it.
  • Index(es):
    • Date
    • Thread