Twitter Updates

Tell Me

Monday, November 10, 2008
A trouble was solved that my program didn’t work on Leopard.

A few weeks ago, I wrote a diary as the Perl’s eval command related to the trouble, but it seemed wrong. After all, it didn’t relate to that. The cause of trouble was only AppleScript’s “tell block” syntax.

Why did I think that “tell block” didn’t relate to this problem? Because I knew that a command controls UI as “display dialog” needs to tell the Finder, when using osascript. Of course I had taken action.

By the way, To write “tell application "Finder"” in blind panic is wrong, too. For example, that is POSIX file command. It is in OSAX called “StandardAdditions”, but is not a application. This command will fail in case binding tell-block. So until that time, the command had been naked.

Just, the occasion was in those codes. They needed to bind any object else. So, what was any object? I didn’t find the correct answer, but I came up with using “tell me.” Fortunately, the idea was available a way.

0 comments: