• 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: Mail's Sent Messages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 ?????

It's supposed to be what's described in <http://developer.apple.com/technotes/tn/tn2022.html>.
I don't think there's a built-in coercion for 'furl'. Perhaps a valid enhancement request for <https://bugreport.apple.com/>.

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

References: 
 >Mail's Sent Messages (From: Luther Fuller <email@hidden>)
 >Re: Mail's Sent Messages (From: Joel Esler <email@hidden>)
 >Re: Mail's Sent Messages (From: Luther Fuller <email@hidden>)
 >Re: Mail's Sent Messages (From: Luther Fuller <email@hidden>)
 >Re: Mail's Sent Messages (From: Luther Fuller <email@hidden>)
 >Re: Mail's Sent Messages (From: Philip Aker <email@hidden>)
 >Re: Mail's Sent Messages (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: AppleScript After Launchd Job
  • Next by Date: Re: AppleScript After Launchd Job
  • Previous by thread: Re: Mail's Sent Messages
  • Next by thread: Re: Mail's Sent Messages
  • Index(es):
    • Date
    • Thread