• 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: My folder action problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: My folder action problem (From: Luis Oliveira <email@hidden>)

  • Prev by Date: Scriptmaster XT work with Quark 4.11?
  • Next by Date: RE: ScriptMaster XT work with Quark 4.11?
  • Previous by thread: Re: My folder action problem
  • Next by thread: Re: My folder action problem
  • Index(es):
    • Date
    • Thread