Re: ftp mounting
Re: ftp mounting
- Subject: Re: ftp mounting
- From: Mark Steinberg <email@hidden>
- Date: Wed, 4 Sep 2002 21:44:12 -0400
Thanks..works beautifully. I just wish it didn't have to be dependant
on AppleScript. Oh well
NSAppleScript *theScript = [[NSAppleScript alloc]
initWithSource:@"tell application \"Finder\"\r mount volume
\"
ftp://ftp.yoursite.com\"\r end tell\r"];
NSDictionary *theError = [[NSDictionary alloc] init];
[theScript executeAndReturnError: &theError]; //Probably a good
idea to check for errors
[theScript release];
[theError release];
Mark
On Wednesday, September 4, 2002, at 07:26 PM, David Remahl wrote:
Is there a way using Cocoa to have an ftp volume mounted by the
finder.
I've tried NSWorkspace openURL but that just wants to download
whatever is at the address given.
TIA
Mark
This AppleScript will do the trick:
tell application "Finder"
mount volume "ftp://ftp.sunet.se/pub" 'replace with your url
end tell
Use whatever method you see fit to execute it. Either 'osascript', the
new
NSAppleScript or maybe plain AppleEvents.
/ Sincerely, David Remahl
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
--
Mark Steinberg
Textile Technologies LLC
http://www.textiletech.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.