Re: Mail's Sent Messages
Re: Mail's Sent Messages
- Subject: Re: Mail's Sent Messages
- From: Philip Aker <email@hidden>
- Date: Sun, 7 Jun 2009 03:14:31 -0700
On 2009-06-06, at 16:04:46, Luther Fuller wrote:
Now, I have another problem ...
I noticed this in my code: «class furl»
I can tell from the context that it compiled to something understandable in Tiger, but not in Leopard.
Does anyone know what «class furl» is ?????
Thanks. I checked out the tech note, but didn't see what I needed. I tried compiling the code on my sloooow iBook running Tiger, but it didn't translate. Here's the AppleScript code in a tell "Mail" block running 10.5.7 Intel ...
set acnt to (get account of mbox)
set acntDir to (account directory of acnt) if (class of acntDir) = «class furl» then set acntDir to acntDir as text else -- acntDir is returned with slashes in Tiger set acntDir to ((POSIX file acntDir) as alias) as text end if
My memory of what I was thinking when I wrote this has long been erased. It's been about 3 years. (I may want to eliminate this compatibility code and drop Tiger compatibility.)
Actually, it seems there are coercions available (also using 10.5.7/Intel). Both 'file' and 'alias' work for me:
tell application "Mail" set rslt to {} set dirs to account directory of every account repeat with i from 1 to count of dirs -- set dir to item i of dirs as file set dir to item i of dirs as alias set end of rslt to dir end repeat rslt end tell
Philip Aker echo email@hidden@nl | tr a-z@. p-za-o.@ Democracy: Two wolves and a sheep voting on lunch.
|
_______________________________________________
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