Automator Variable Combining

Joined
Jan 23, 2016
Messages
1
Reaction score
0
I have two strings and one number from user input. I want to make a text file that puts the variables into specific places. I would like it to repeat the number I had specified times. Each time it repeats (integer) one third of the way through the repeating, it would decrease the difficulty level. And each time the line is repeated, the date would go back by one For example, I would want something like this:

text1 = French Test
text2 = 1/19
difficulty_level = (high-3), (medium-2), (low-1)
days_needed_to_study = 7
"Study for "+text1+"^"+text2+"!"+difficulty_level //difficulty level as a string
//this code will repeat days_needed_to_study times, and each time the text2 date decreases by one day.
//the difficulty will also decrease proportional to the days_needed_to_study

The exporting of the text should look like this:

French Test !Low ^1/22
French Test !Medium ^1/23
French Test !High ^1/24

Thanks so much!

Ben
 

Cory Cooper

Moderator
Joined
May 19, 2004
Messages
11,102
Reaction score
492
Hello and welcome.

I am not very versed in AppleScript/Automator. The folks over at MacScripter may be able to help you, since they have extensive experience with this type of issue.

C
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top