Re: Text and Unicode Text
Re: Text and Unicode Text
- Subject: Re: Text and Unicode Text
- From: Luther Fuller <email@hidden>
- Date: Thu, 10 May 2007 21:03:47 -0500
Right after my last post ... I got another -10010 error. The context
of the error gave me a big hint that I should look in a particular
handler for more unicode text. Sure enough, I found one line of code
that was getting the offset of unicode text within text and another
line of code that had bad parentheses supplied by the compiler. Fixed
both.
I'm going to be conservative about the changes suggested by Shane. If
I get another
-10010 error, I'll consider it. I think it's best to wait a week and
see what happens as a result of the unicode change. One problem at a
time.
On May 10, 2007, at 7:04 PM, Shane Stanley wrote:
On 11/5/07 9:32 AM, "Luther Fuller" <email@hidden> wrote:
Mail, Finder and System Events.
And since my last posting, I've had no errors. The last error I had
was -10010 which originates from this code ...
tell application "Finder"
set appSup to (path to application support from user domain)
(exists folder shortTitle of appSup)
if not the result then
but no clear reason why. I simply tried again and ... no error.
Try relying less on the Finder -- there's no need to use it here, and
certainly no need to call scripting additions like "path to" within
its
scope.
set appSup to path to application support from user domain as string
try
alias (appSup & shortTitle)
on error
-- no such folder
end try
--
Shane Stanley <email@hidden>
AppleScript Pro Denver, June 2007 <http://scriptingmatters.com/aspro>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
Archives: http://lists.apple.com/archives/applescript-users
This email sent to 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/archives/applescript-users
This email sent to email@hidden