Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: widget.openURL("file://....")



On Nov 21, 2005, at 9:39 PM, Brian Klock wrote:

Has anyone found a way to get widget.openURL(url) to succeed if it is passed a url that begins with "file://"? It must be either a security constraint or a mistake in the widget API, though I'm not sure the logic could be for giving widgets a constraint such as this.

There may be an Info.plist key you need (something about allowing file access outside the widget; see Apple's widget documentation), but if that still doesn't work, you might try widget.system("/usr/bin/ open /path/to/file");.


Ben
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/dashboard-dev/email@hidden

This email sent to email@hidden
References: 
 >widget.openURL("file://....") (From: "Brian Klock" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.