Re: Changes with El Capitan?
Re: Changes with El Capitan?
- Subject: Re: Changes with El Capitan?
- From: Robert DuToit <email@hidden>
- Date: Tue, 13 Oct 2015 12:54:45 -0400
Hi Chris,
I haven’t seen this message yet but users of my app are - just started also in El Cap. Am trying now to trace it for them but oddly it isn’t happening to me (frustrating always.)
There is a text field that isn’t getting populated when dragged into. Always worked fine till now.
Cheers, Rob
> On Oct 13, 2015, at 12:05 PM, Chris Swain <email@hidden> wrote:
>
> I’ve used the following code for many years to input a file path into a text box
>
> --Getting input file Using a dialog box
> on showModalPanelinput_(sender)
> set thePanel to current application's NSOpenPanel's openPanel()
> tell thePanel
> setMessage_("Choose the input file:")
> setExtensionHidden_(true)
> setShowsHiddenFiles_(false)
> setTreatsFilePackagesAsDirectories_(false)
> setCanChooseFiles_(true)
> setCanChooseDirectories_(false)
> setAllowsMultipleSelection_(false)
> setResolvesAliases_(true)
> --setAllowedFileTypes_(false) -- set types to allow selection of
> set theResult to runModal() -- open, and wait here until it's finished
> end tell
> if theResult = current application's NSFileHandlingPanelOKButton then
> set theURLs to (thePanel's |URLs|()) as list
> repeat with aURL in theURLs
> --log aURL's |path|()
> set my input_file to aURL's |path|()
> end repeat
> else
> -- cancel button
> --log "Cancel pressed"
> end if
> end showModalPanelinput_
>
> Now I get this error
>
> *** -[iBabelAppDelegate showModalPanelinput:]: item 1 of {file "Macintosh HD:Users:chrisswain:Desktop:Sample Files:caffeine.mol"} doesn’t understand the “path” message. (error -1708)
>
> and the text box is not populated.
>
> Cheers
>
> Chris
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> applescriptobjc-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden