• 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: Apple Event -> Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Apple Event -> Finder


  • Subject: Re: Apple Event -> Finder
  • From: Cameron Hayne <email@hidden>
  • Date: Tue, 11 Mar 2003 22:55:34 -0500

On 9/3/03 9:25 PM, "Zachary Black" <email@hidden> wrote:

> I'm working on a project that sends an apple event to the Finder to
> mount a volume (specifically, an iDisk). The problem is, the command
> seems to be ignored UNLESS the iDisk has been previously mounted via a
> real AppleScript:
>
> tell application "Finder"
> mount volume "http://idisk.mac.com/zblack-Public";
> end tell
>
> Somehow this script "tickles" the Finder into accepting the Apple Event
> from my C++ project. Logging out will undo this effect, and then the
> event is ignored again.

If you really are desperate to get a solution right now, why not just invoke
the actual AppleScript instead of sending an AE. I recall that there is an
API to do this (though that might be in Cocoa, not Carbon - I don't remember
which) but you can always just invoke a subprocess that uses
/usr/bin/osascript

--
Cameron Hayne (email@hidden)
Hayne of Tintagel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Mounting dave shares
  • Next by Date: Re: Determining item number matching "x" in a list
  • Previous by thread: Apple Event -> Finder
  • Next by thread: Getting every event for a given day in Now Up-to-Date
  • Index(es):
    • Date
    • Thread