Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'reinventing the wheel' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
reinventing the wheel
Authored by: xcgr on Apr 06, '05 02:36:51PM

Not a very good hint, IMO, for the reasons mentioned above. Either use AppleScript Studio's built-in routines, or glue together 'do shell script' and /usr/bin/defaults. Rolling your own makes no sense when Apple already gives you tools that do the same thing -- and probably do it better than your own code.



[ Reply to This | # ]
Re: reinventing the wheel
Authored by: Krioni on Apr 06, '05 06:01:27PM

The original hint was for _simple_ AppleScript apps, not for AppleScript Studio apps. In other words, he wrote a quick script in Script Editor and chose Save as Application.

I didn't review the handlers to see how good they looked, but he certainly can't use the 'user defaults' commands from a plain AppleScript app. I would use 'do shell script' with the 'defaults' command, but as someone mentioned, that requires the BSD subsystem to be installed. I usually assume it is.



[ Reply to This | # ]