Create variable and use it across different actions

#1

Hi,

I'm trying to create a variable that I could use to increment a given number with a button so I could create incremented ID when I write documents without worrying about where I am in the count.

For now I've been able to create a variable with user input via apple script and I can also add 1 to that variable at the end but I can't figure how to insert it as text (preferably write and not paste)

Does anyone have any clues?
Thanks!

0 Likes

#2

Ah that would be a good addition to the "Paste Text" action. I'll add a way to select variables there.

0 Likes

#3

I just found this
tell application "BetterTouchTool"

set_persistent_number_variable "variableName" to 12345

end tell

It would be nice if we could use that variable in the Insert / Type / Paste Custom Text action like we can use the date&time

0 Likes

#4

yep, I'll add that!

0 Likes

#5

Super interesting!!
How can I tell another Apple Script widget to use that variable?

0 Likes

#6

Hi guys,

Do you have any update on that feature?

Thanks!

0 Likes