Re: Tell Blocks Considered Harmful (was Re: open for access)
Re: Tell Blocks Considered Harmful (was Re: open for access)
- Subject: Re: Tell Blocks Considered Harmful (was Re: open for access)
- From: KOENIG Yvan <email@hidden>
- Date: Sat, 20 Dec 2008 13:18:04 +0100
First point, I apologize for an unwanted click sending an odd
message :-(
Le 20 déc. 2008 à 11:12, Axel Luttgens a écrit :
Le 20 déc. 08 à 08:10, Richard Rönnbäck a écrit :
I am trying to dig into my memory to see if I can remember any
script of
mine that broke because of a "tell block problem".
Hello Richard,
The breakages do not need to be spectacular, they may just prove
extremely annoying.
I remember this one from an earlier thread:
set X to "/System"
(POSIX file X) as text
--> "BootDisk:System"
tell application "Mail" to (POSIX file X) as text
--> "BootDisk:System:"
It seems that it's not really incoherent.
If we use POSIX file out of a 'tell application' block, it will
return exactly what is asked for:
"/System" --> "BootDisk:System"
"/System/" --> "BootDisk:System:"
If we use it in a 'tell application' block
"/System" --> "BootDisk:System:"
This result is not linked to a specific application. You used Mail, I
used "System Events" & Finder.
Yvan KOENIG (from FRANCE samedi 20 décembre 2008 13:17:04)
_______________________________________________
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