Timeline for Applescript Access Variables Through Run Script
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 2, 2015 at 1:08 | comment | added | APCoding | I already assign a-i and then 1 and 2 before this script is run | |
Nov 2, 2015 at 0:47 | comment | added | jweaks | Excellent... but I still don't understand the goal, what you're trying to accomplish, so sorry can't help more. Do you understand what I'm saying that your script is broken? let's say rand ends up being "c", and rand2 is "g". You are setting c1 to g1 before you ever declare and assign a value to g1, so your script is broken as it is. | |
Nov 1, 2015 at 14:59 | comment | added | APCoding | Basically I'm picking two random variables that are predefined and switching them around. | |
Oct 31, 2015 at 2:43 | comment | added | jweaks | I think you're not being clear about setting what variable in front of or behind a "run script". You can set a variable via run script: set x to run script "return 2" | |
Oct 31, 2015 at 2:42 | comment | added | jweaks | If you want an actual answer to your main problem, you need to provide more details/context for your script to get help with what you're trying to accomplish. As I said below, your script you provided makes no sense, since you're setting one variable to another variable before it is defined. And, you should ask it in its own topic. | |
Oct 31, 2015 at 0:48 | comment | added | APCoding | Basically I just want an answer to my first script | |
Oct 31, 2015 at 0:44 | comment | added | APCoding |
But that doesn't allow me to access variables outside run script , which is what I need (I'm sorry if that wasn't clear). So basically is there a way to set a variable via run script that exists outside of run script ?
|
|
Oct 30, 2015 at 5:56 | history | answered | jweaks | CC BY-SA 3.0 |