Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Jolly Roger Newsgroups: comp.sys.mac.system Subject: Re: photolibraryd Date: 24 Aug 2019 19:27:21 GMT Organization: People for the Ethical Treatment of Pirates Lines: 42 Message-ID: References: X-Trace: individual.net 2o5/X20DpWrh+A8GUuoeTwHyg8W7VzgbHfy/o6pKtDZYIupw+H Cancel-Lock: sha1:yaUWzLE6fIuifWtr3Kk2Q8U+Cpk= X-No-Archive: Yes MMail-Copies-To: nobody X-Face: _.g>n!a$f3/H3jA]>9pN55*5<`}Tud57>1Y%b|b-Y~()~\t,LZ3e up1/bO{=-) User-Agent: slrn/1.0.1 (Darwin) Xref: csiph.com comp.sys.mac.system:125948 On 2019-08-24, gtr wrote: > On 2019-08-23 18:31:47 +0000, Jolly Roger said: >> On 2019-08-23, gtr wrote: >>> >>> Man you rock! >> >> Nah! But thanks! : D >> >> One thing I love about AppleScript is how easy it is for someone who >> really doesn't know much about software development to understand and >> use. On the flip side of that, AppleScript does have significant >> idiosyncrasies that tend to complicate things for people who are new >> to the language. And knowing how to avoid or work around those >> potential issues is often the key to success! > > I'm sure that's true. I've bought a few books on AppleScript over the > years, and malingered in the earlier chapters. I've then usually > found a way to avoid it with utilties of one kind or another. > > In fact, I've been wanting to sit down and write some AScripts to help > hot-key Apple's Numbers application for simple things like "Add Line > Below" and such. When gathering ammo for a first pass, I recently saw > that the program has now added drop-down entries, making it feasible > for me to simply use Keyboard Maestro. > > Saved again! The problem with using a macro utility to automate mouse clicks, key presses, and so on is you have to avoid doing anything with the device or you'll screw up the macro and those clicks and key presses will be misplaced. The nice thing about AppleScript is generally rather than controlling the user interface, you're sending commands directly to the app in question, which means it doesn't matter what the user is doing at the time with the mouse or keyboard. In some cases, though, like when an app doesn't support a command to do what you want, user interface automation is the only way to get it done. -- E-mail sent to this address may be devoured by my ravenous SPAM filter. I often ignore posts from Google. Use a real news client instead. JR