nyl
April 18, 2021, 6:15pm
1
hello we have a file sample.txt that contains the following:
link1.html
link2.html
link3.html
link4.html
link5.html
we would like safari to open the 1st link and execute an applescript, then the 2nd and execute an applescript, then 3rd and execute an applescript etc.
Hey @nyl ,
Welcome to the forum!
Read the file into a variable.
Use a For Each action with the lines-in-a-variable condition.
Use the Open a URL action to open the line in Safari.
Execute your AppleScript.
Iterate.
You'll have more control of Safari with pure AppleScript if needed.
If these clues aren't enough to get you going then report back.
-Chris