Search found 851 matches

by kundal
28 Jan 2017, 17:56
Forum: Script Buttons & Add-Ins
Topic: Tagger3 for DOpus12
Replies: 39
Views: 3925

Re: Tagger3 for DOpus12

You are using FILTER=grp:images and the selected file is *.pdf. PDF-files are not in the file type group "images" by default. If there's no file matching your filter in the current folder Tagger will do nothing. Try FILTER=grp:documents or FILTER=*.pdf instead or delete the whole filter ar...
by kundal
18 Jan 2017, 14:32
Forum: Help & Support
Topic: Running several scripts
Replies: 18
Views: 1185

Re: Running several scripts

I think it's the SelectEx Script not behaving as expected in this special case. @Sasa: You can create a script function button or user defined command that does what you want by simply merging the code. This works fine here: var cmd = DOpus.Create.Command var jsFilter = ""+ "if (item....
by kundal
17 Jan 2017, 23:45
Forum: Help & Support
Topic: Running several scripts
Replies: 18
Views: 1185

Re: Running several scripts

Sorry but the full script is tbone's SelectEx Script Addon. It provides the command SelectEx with several arguments. For the JSFILTER argument you can provide a js-snippet. The code I provided defines this argument and afterwards runs the SelectEx command with several additional arguments. The code ...
by kundal
17 Jan 2017, 22:58
Forum: Help & Support
Topic: Running several scripts
Replies: 18
Views: 1185

Re: Running several scripts

I'm sure what Sasa tries to do is exactly what I posted here because I created the SelectEx button codes to create playlists for him in the german forum.
by kundal
17 Jan 2017, 17:03
Forum: Help & Support
Topic: Running several scripts
Replies: 18
Views: 1185

Re: Running several scripts

Try adding the NOFAIL switch to each SelectEx execution.
Thanks for your input tbone. Unfortunately it makes no difference here.
by kundal
17 Jan 2017, 16:40
Forum: Help & Support
Topic: Running several scripts
Replies: 18
Views: 1185

Re: Running several scripts

Essentially the button should run the SelectEx command with various arguments twice. The jscript snippet is only needed to define the jsFilter argument. The user commands are not created by this code but via Customize=>Commands=>User defined Commands.
by kundal
17 Jan 2017, 16:15
Forum: Help & Support
Topic: Running several scripts
Replies: 18
Views: 1185

Re: Running several scripts

It's already the whole code. tbone's SelectEx Script Addin must be installed to make the code working from a Script function button. Let's call user command 1 "Oldies" and user command 2 "Pop" then the button code would simply be this:

Code: Select all

Oldies
Pop
by kundal
17 Jan 2017, 16:00
Forum: Help & Support
Topic: Running several scripts
Replies: 18
Views: 1185

Re: Running several scripts

I can confirm that running two user commands with variations of tbone's SelectEx Script Addon from a button doesn't work. Only the first one will be executed. Here are two examples: User command 1: var cmd = DOpus.Create.Command var jsFilter = ""+ "if (item.metadata == 'audio'){ "...
by kundal
14 Jan 2017, 17:05
Forum: Script Buttons & Add-Ins
Topic: Tagger3 for DOpus12
Replies: 39
Views: 3925

Re: Tagger3 for DOpus12

I couldn't reproduce the exact error you got but you definitely made something wrong. - It doesn't make sense to define a system-wide hotkey for Tagger because the command won't do anything if there is no open lister window. - To start Tagger from a viewer window create a Viewer-hotkey. - To start T...
by kundal
12 Jan 2017, 23:50
Forum: Help & Support
Topic: Image Viewer Request
Replies: 7
Views: 636

Re: Image Viewer Request

Thanks for adding this. Working fine here. :thumbsup:
by kundal
28 Dec 2016, 00:10
Forum: Help & Support
Topic: Automatically generate coverart.jpg
Replies: 11
Views: 1005

Re: Automatically generate coverart.jpg

The following command is working in Flatview. Image CONVERT=jpg HERE AS coverart.jpg Select coverart.jpg DESELECTNOMATCH dopusrt /cmd SetAttr ATTR h You can use a filter or a Select command like Select DESELECTNOMATCH PATTERN="folder.jpg" to select all files you want to convert. Edit: You ...
by kundal
22 Dec 2016, 01:28
Forum: Help & Support
Topic: VIEWERCMD to select currently viewed file minus extension?
Replies: 6
Views: 462

Re: VIEWERCMD to select currently viewed file minus extension?

Try this:

Code: Select all

Select {file|noext} DESELECTNOMATCH
Show VIEWERCMD=close
by kundal
18 Dec 2016, 03:54
Forum: Help & Support
Topic: Image Viewer Request
Replies: 7
Views: 636

Re: Image Viewer Request

display the centre section at 100% by default. With an Argument "centre" this could easily be done with an OnViewerEvent Script AddIn. At the moment you could only make something like "scroll down 2 times, scroll right 2 times" the default with this. Depending on the image dimen...
by kundal
17 Dec 2016, 13:12
Forum: Help & Support
Topic: Image Viewer Request
Replies: 7
Views: 636

Re: Image Viewer Request

It would be possible to add a Show VIEWERCMD=scroll command to the Viewer hotkey but there's currently no way to scroll to the centre with this. To show the bottom left corner instead of the upper left corner the command would be Show VIEWERCMD=scroll,bottom,vert . Instead of "bottom" you ...
by kundal
17 Dec 2016, 08:06
Forum: Help & Support
Topic: How to suppress duplicate prompt when adding to a collection?
Replies: 16
Views: 2745

Re: How to suppress duplicate prompt when adding to a collection?

I'm sure leo and jon are reading this thread and they will look into this. Apart from realpath not working as expected my feature requests are: ⋅ Make WHENEXISTS=skip working with collections ⋅ Make methods like Command.AddFileFromFolder and FSUtil.ReadDir working with collection...
by kundal
17 Dec 2016, 06:25
Forum: Help & Support
Topic: How to suppress duplicate prompt when adding to a collection?
Replies: 16
Views: 2745

Re: How to suppress duplicate prompt when adding to a collection?

But isn't very useful ...but seems to be the only thing that's working. :( I also tried the Command.AddFilesFromFolder method to avoid opening the collection first but this also doesn't handle files with identical names correctly. The only workaround I got working is the following which causes an u...
by kundal
17 Dec 2016, 03:27
Forum: Help & Support
Topic: How to suppress duplicate prompt when adding to a collection?
Replies: 16
Views: 2745

Re: How to suppress duplicate prompt when adding to a collection?

This works correctly: Option Explicit Function OnClick(ByRef clickData) Dim file clickData.func.command.RunCommand("Go coll://Tagged") For Each file In clickData.func.command.sourcetab.all DOpus.Output DOpus.FSUtil.Resolve(file) Next End Function
by kundal
17 Dec 2016, 03:08
Forum: Help & Support
Topic: How to suppress duplicate prompt when adding to a collection?
Replies: 16
Views: 2745

Re: How to suppress duplicate prompt when adding to a collection?

The problem you're seeing is because v.Next is the same both times so Resolve is being called twice with the same argument.
Trying the same code with files with different names works fine though.
by kundal
17 Dec 2016, 02:58
Forum: Help & Support
Topic: How to suppress duplicate prompt when adding to a collection?
Replies: 16
Views: 2745

Re: How to suppress duplicate prompt when adding to a collection?

This will give you the real paths: DOpus.Output DOpus.FSUtil.Resolve(v.Next) ...but with 2 files in the collection: C:\Desktop\Test.txt D:\Downloads\Test.txt ...the output is: C:\Desktop\Test.txt C:\Desktop\Test.txt ...as I said it doesn't seem to work with several files with identical names...
by kundal
16 Dec 2016, 17:31
Forum: Help & Support
Topic: How to suppress duplicate prompt when adding to a collection?
Replies: 16
Views: 2745

Re: How to suppress duplicate prompt when adding to a collection?

You're right, my code wouldn't copy another file with identical name to the collection. I tried to enumerate the content of the collection using DOpus.FSUtil.ReadDir but it seems this method doesn't work if there are files with identical names in the collection or maybe I'm doing something wrong. Ho...

Go to advanced search