Re: open remote file with local application?
Re: open remote file with local application?
- Subject: Re: open remote file with local application?
- From: Nick Zitzmann <email@hidden>
- Date: Tue, 7 Oct 2003 22:53:55 -0700
On Tuesday, October 7, 2003, at 11:53 AM, Mark Ackerman wrote:
Seeking a technique to open a remote file with a local application
without first downloading the file to a local disk, something like:
[[NSWorkspace sharedWorkspace]
openFile:@"https://www.mycompany.com:443/
citrix/CitrixServlet?
func=getICA&credential=blahblahblah"
withApplication:@"Citrix ICA Client.app"];
If this "Citrix ICA Client" application supports the GURL (GetURL)
Apple event, and you're fairly sure that it hasn't been made the user's
default helper application for https, you can do something like this:
(written in Mail, untested)
NSAppleScript *script = [[NSAppleScript alloc] initWithSource:@"tell
application \"Citrix ICA Client\" to GetURL
\"
https://www.mycompany.com:443/citrix/
CitrixServlet?func=getICA&credential=blahblahblah\""];
NSDictionary *error;
[script executeAndReturnError:&error];
If the application doesn't support GetURL, OpenURL, or some other means
of opening a URL through inter-application communication, then you
can't really do this without first downloading the file to a local
disk...
Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page:
http://seiryu.home.comcast.net/
"I have always wished that my computer would be as easy to use as my
telephone. My wish has come true. I no longer know how to use my
telephone." - Bjarne Stroustrup
_______________________________________________
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.