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

NecroDayz

macrumors newbie
Original poster
Feb 25, 2013
5
0
Currently working on a text based AppleScript game but how would I go about making a save system?:confused:
 

NecroDayz

macrumors newbie
Original poster
Feb 25, 2013
5
0
Ya it's pretty easy/hard at times due to it being pseudocode and it's just plain vanilla AppleScript however using .plist files how would I save/load variables
 

Gugulino

macrumors member
Dec 16, 2008
54
0
Switzerland
Ah, I thought you want to save a file such a text file.

You have to say "do shell script" and then something like that: defaults write com.apple.Finder AppleShowAllFiles NO

Instead of NO you can use your variable and instead of com.apple.Finder you use the name of your .plist file.

The .plist file has to be in the following directory: ~/Library/Preferences/.

I hope this helps!
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.