Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Intelligent

macrumors 6502a
Original poster
Aug 7, 2013
922
2
How do i set a global variable, i have a variable that is the POSIX path that i choose, but i how do i declare it as global, normal ones are just set.

EDIT: Applescript
 
Last edited:
How do i set a global variable, i have a variable that is the POSIX path that i choose, but i how do i declare it as global, normal ones are just set.

Assuming that you are programming in C or Objective C, declare it outside of a function and just set it:

Code:
variable = value;
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.