Increase the last number found in the string N times

An Alfred Workflow


Short Description

Increase the last number found in the string N times. Eg. images/file0.png ==> images/file1.png

Last Updated

13 Nov 2019

Compatibility

Yosemite
(10.10)
Mavericks
(10.9)
Mountain Lion
(10.8)
Lion
(10.7)
Snow Leopard
(10.6)
Yes Yes Yes Yes Yes
 

Version

2.0
 

Bundle ID

com.alfredapp.increasebyone
 

Author

This workflow reads the copied text and gets the last number it sees in that text, then increase that number N times and pastes back.

 

 

 

Example:  copy this line to clipboard

 

![](images/folder0/subfolder1/file0.png)

 

command: incr 5

 

Then it will paste following: 

 

![](images/folder0/subfolder1/file0.png)

![](images/folder0/subfolder1/file1.png)

![](images/folder0/subfolder1/file2.png)

![](images/folder0/subfolder1/file3.png)

![](images/folder0/subfolder1/file4.png)

 

 

As simple as that!