• 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: open remote file with local application?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: open remote file with local application?
      • From: Cameron Hayne <email@hidden>
  • Prev by Date: Error: dsNoPk5 (22): package 5 not present
  • Next by Date: Metapackages even possible with PackageMaker??
  • Previous by thread: Re: open remote file with local application?
  • Next by thread: Re: open remote file with local application?
  • Index(es):
    • Date
    • Thread