|Feb 25, 2013, 12: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.2) / Xcode 6.2 / RubyMotion FTW
|Feb 25, 2013, 06:01 PM||#5|
|Feb 26, 2013, 08: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 08: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 06:03 PM|
|AppleScript: How do I save multiple Excel sheets to one pdf using Applescript||sbtaylor1||Mac Programming||0||Oct 28, 2013 11:38 PM|
|AppleScript: How do I save multiple Excel sheets to one pdf using Applescript||sbtaylor1||Mac Applications and Mac App Store||0||Oct 28, 2013 11:32 PM|
|Applescript how to save to PC on network||redwgaontoy||Mac Programming||6||Jun 11, 2013 05:32 AM|
|Using Automator to create a system-wide keyboard shortcut to run an AppleScript||Let's Sekuhara!||Mac Programming||2||Jun 13, 2012 11:22 PM|
All times are GMT -5. The time now is 04:10 PM.