• 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: ftp mounting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: ftp mounting (From: David Remahl <email@hidden>)

  • Prev by Date: Problems getting free disk space
  • Next by Date: Re: ftp mounting
  • Previous by thread: Re: ftp mounting
  • Next by thread: Re: ftp mounting
  • Index(es):
    • Date
    • Thread