|Feb 25, 2013, 01:17 PM||#2|
If this is a regular AppleScript application you can store data in properties or use a preferences .plist file via defaults or the Property List Suite from System Events. For an Xcode or Cocoa-AppleScript application there is NSUserDefaults.
MacBook Pro / OS X Yosemite (10.10) / Xcode 6.1 / RubyMotion FTW
|Feb 25, 2013, 07:01 PM||#5|
|Feb 26, 2013, 09:34 AM||#7|
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!
MacBook Pro Core 2 Duo, Mac Mini 2011, iPhone 4, My website
Last edited by Gugulino; Feb 26, 2013 at 09:45 AM.
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Hide OSX System Preferences in Applescript for toggling ignore trackpad in Mavericks?||mactp||Mac Programming||9||Mar 16, 2014 07:03 PM|
|AppleScript: How do I save multiple Excel sheets to one pdf using Applescript||sbtaylor1||Mac Programming||0||Oct 29, 2013 12:38 AM|
|AppleScript: How do I save multiple Excel sheets to one pdf using Applescript||sbtaylor1||Mac Applications and Mac App Store||0||Oct 29, 2013 12:32 AM|
|Applescript how to save to PC on network||redwgaontoy||Mac Programming||6||Jun 11, 2013 06:32 AM|
|Using Automator to create a system-wide keyboard shortcut to run an AppleScript||Let's Sekuhara!||Mac Programming||2||Jun 14, 2012 12:22 AM|
All times are GMT -5. The time now is 07:01 PM.