open file using D&D in Catalog

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
graham
Posts: 457
Joined: 24 Aug 2007 22:08
Location: Isle of Man

open file using D&D in Catalog

Post by graham »

I have always previously used Drag and drop a tiff file to a Catalog program item (Photoshop.exe) successfully to open this type of file. Now PS gives a msg could not complete request as wrong sort of document.

Open With in WE works no problems
Open With from Right click on file works
Open With in UDC fails as above if mode set to single instance but works if multiple

Does this mean drag and drop is no longer an option?

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: open file using D&D in Catalog

Post by jacky »

graham wrote:I have always previously used Drag and drop a tiff file to a Catalog program item (Photoshop.exe) successfully to open this type of file. Now PS gives a msg could not complete request as wrong sort of document.

Open With in WE works no problems
Open With from Right click on file works
Open With in UDC fails as above if mode set to single instance but works if multiple

Does this mean drag and drop is no longer an option?
I don't know why this happens, but to fix it simply set your Catalog item to use multiple instance call (on Properties, under the new section Advanced). That should do it
Proud XYplorer Fanatic

graham
Posts: 457
Joined: 24 Aug 2007 22:08
Location: Isle of Man

Post by graham »

Jacky wrote:
I don't know why this happens, but to fix it simply set your Catalog item to use multiple instance call (on Properties, under the new section Advanced). That should do it
Yes Thanks. I tend to forget the properties bit!

That said, I tried a variety of programs and in all but a few cases the workable option was for multiple instance. So, that being the case, should this be set as the default in the Properties :?:

admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

graham wrote:Jacky wrote:
I don't know why this happens, but to fix it simply set your Catalog item to use multiple instance call (on Properties, under the new section Advanced). That should do it
Yes Thanks. I tend to forget the properties bit!

That said, I tried a variety of programs and in all but a few cases the workable option was for multiple instance. So, that being the case, should this be set as the default in the Properties :?:
Good question and hard to answer. The reason for the different behavior is this:
In single instance calls I just pass the file names without path and pass the pass the path as "default dir" (reason: keep the command line as short as possible). Photoshop cannot handle this, it always wants the files with full path, which is what it gets when I call multiple instances (reason: no need to keep command line short when just one file is passed).

So, yes, maybe multiple instance should be the default. This would guarantee that all apps can handle opening single files.

Or, I further complicate the interface (Catalog and UDC) by adding a new option "Pass files with full path" or so. Sigh...

Thanks for opinions!

admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

Found a good solution. I simply check wheather stripping is necessary!

Code: Select all

    * UDC, Catalog: now, items passed to a single instance of the 
      opening application are only stripped from the full path when the 
      command line otherwise would be too long (i.e. > 2 KB).

Post Reply