Jump to content
raguay.customct

Next Item Workflow

Recommended Posts

This little workflow allows you to sequentially step through items in multiple list files. You use the "Next Item: Set File" file action on the file containing a list of items: One item per line. For example, a list of urls; one per line. Then the hot key (you will have to set yourself since mine being <alt><command>n will be erased) will take the next item from the specified first list and copy it to the clipboard and to a notification. If you view all lists before the first list, you will see each corresponding item for each list. The counter is only incremented after passing the item from the first list.
 
"ni:move #" will move the last set file to the # list. If you do not move the file items to a list number, then it will not get sent to you.
 
"ni:item" will give the next item from the first list and increment the counter.
 
ni:l #" will give the next item from the # list, but the count will not be incremented unless it is list 1.
 
"ni:inc" and "ni:dec" will increment or decrement the counter. 
 
"ni:set" allows you to set the counter to any number. 
 
"ni:clear" will clear the counter and erase the temporary files. 
 
"ni:current" will display the current count number.
 
The items are addressed using a zero reference. Therefore, if the counter is 1, the the second line in the file will be displayed.
 
Setting a new list will clear the count. The file specified is copied to a work area that all the other scripts will use to access it. Therefore, you do not need to worry about the original file being changed.

 

 
Edited by raguay.customct

Share this post


Link to post

Hi, I just updated this workflow to allow for multiple lists. Therefore, if you have more than one list that has items sequenced together, you can use this workflow to sequentially view them. Full directions are in the ReadMe for the workflow. Let me know if you need any other features.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...