Re: My folder action problem
Re: My folder action problem
- Subject: Re: My folder action problem
- From: Jon Pugh <email@hidden>
- Date: Thu, 9 Aug 2001 10:45:35 -0700
At 5:41 PM +0100 8/9/2001, Luis Oliveira wrote:
>
Unfortunately you can't use display dialog inside a tell app "Finder" of
>
machine..., and as soon as you drop a file inside the folder it gives the
>
error -2753.
There is a technique around this problem IFF (if and only if) Jon's Commands is installed on the remote machine. It has a command "AE user interaction level" which allows you to get a dialog up on the remote machine.
The reason it errors is because the default interaction level of AppleEvents is kAEInteractWithLocal. You need to change it to kAEInteractWithAll on the local machine before "display dialog" can succeed.
So, use it like this:
tell application "Finder" of machine "NotSoSirius - The DogCow Star"
set oldLevel to AE user interaction level AE interact with all
display dialog "Hi Rudolfo!" buttons "OK" default button "OK"
AE user interaction level oldLevel
end tell
Remember, use this technique only for good, not evil. ;)
Jon