Sending TEXT values in Apple Events with AppleScript 2.0
Sending TEXT values in Apple Events with AppleScript 2.0
- Subject: Sending TEXT values in Apple Events with AppleScript 2.0
- From: Scott Babcock <email@hidden>
- Date: Tue, 3 Jun 2008 17:16:20 -0700
- Acceptlanguage: en-US
- Thread-topic: Sending TEXT values in Apple Events with AppleScript 2.0
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?
|
_______________________________________________
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