• 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: Sending TEXT values in Apple Events with AppleScript 2.0
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sending TEXT values in Apple Events with AppleScript 2.0


  • Subject: Re: Sending TEXT values in Apple Events with AppleScript 2.0
  • From: email@hidden
  • Date: Wed, 4 Jun 2008 09:31:44 +0200

Title: Re: Sending TEXT values in Apple Events with AppleScript 2
At 5:16 PM -0700 6/3/08, Scott Babcock wrote:
Content-Language: en-US
Content-Type: multipart/alternative;
     boundary="_000_745125AE0FBA18468AEDC36960AA97FC3700B19429NAEXMSGC103re_"
In the new world of Unicode-only strings, I'm at a loss as to how I can send an Apple Event from AppleScript 2.0 in which the value of one of the parameters is required to be an 8-bit string. I've tried to coerce the value to 'string' in the event call, but to no avail. Here's my code:
 
set msg to "This is the message"
tell application "FooBar" to <<event my_event>> given <<class yatz>>:length of msg, <<class putz>>:msg as string
 
This works fine in Tiger (AppleScript 1.10.7), but fails on Leopard (AppleScript 2.0). Does anyone know of a way to send an 8-bit string as the value of an event parameter from AppleScript 2.0?

Maybe you can use Satimage.osax' "extract string" command.

Emmanuel
 _______________________________________________
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: Sending TEXT values in Apple Events with AppleScript 2.0
  • Next by Date: Control Universal Access Zoom with AS
  • Previous by thread: Re: Sending TEXT values in Apple Events with AppleScript 2.0
  • Next by thread: Re: Sending TEXT values in Apple Events with AppleScript 2.0
  • Index(es):
    • Date
    • Thread