Re: Apple Event -> Finder
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.