Re: open remote file with local application?
Re: open remote file with local application?
- Subject: Re: open remote file with local application?
- From: Mark Ackerman <email@hidden>
- Date: Thu, 9 Oct 2003 09:03:01 -0400
Unfortunately, the Citrix app has no Applescript dictionary.
Well, I've given up on the whole notion of avoiding downloading the
file to disk. Will just download it to /tmp and overwrite each time
it's downloaded. In this case, " 'Better' is the enemy of 'good
enough.' " (oft attributed to Soviet Admiral Sergei Gorshkov).
Thanks for your help.
Mark Ackerman
On Wednesday, October 8, 2003, at 01:53 AM, Nick Zitzmann wrote:
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.