Re: Text and Unicode Text
Re: Text and Unicode Text
- Subject: Re: Text and Unicode Text
- From: Shane Stanley <email@hidden>
- Date: Fri, 11 May 2007 10:04:38 +1000
- Thread-topic: Text and Unicode Text
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden