Archive for October 28, 2015

Wednesday, October 28, 2015 [Tweets] [Favorites]

When Open Does Not Return an Object Reference

Mark Alldritt:

The code below shows one way of working around the problem of the Open command not returning a reference to the newly opened document. I use the Preview application in my code, but this technique works equally well with other application which fail to return a document reference from their Open commands. This technique fails if the file is already open.

One of the main frustrations with AppleScript is that sometimes things like this that should be easy end up requiring a big chunk of copy and pasted code.

When Is Zip Not Zip?

Scott Gruby:

There are various flavors of zip, libraries that do zip, and other tools that zip. In one of our tools, we were using a zip library. It appears that Apple made a change in iOS 9.0.2 or 9.1 that caused applications created by our tool to not install on devices. However, the problem was only present if the app was installed over the air or through iTunes; installed through Xcode’s Devices window succeeded. After an arduous day of debugging trying to determine the failure point (provisioning is usually to blame for failures and they can be super frustrating), I switched our tool to use the command line zip (/usr/bin/zip) and amazingly the problem went away.

Inside Apple’s Perfectionism Machine

Lance Ulanoff interviews Phil Schiller:

Some like to call it the “Speaktenna.” The black strip along the back edge of the MacBook speakers is a never-before-tried combination of speakers and antennas for Wi-Fi and Bluetooth. It’s a fairly ingenious bit of space-saving technology that teardown artists ignored.


“The most common scenario is simply that what we got from a supplier basically has been created so uniquely for Apple that implying it’s an off-the-shelf part like others may get would be really misleading,” Schiller said. “So it’s best not to even talk about the source because that implies things that aren’t true.”


This battery design, spread over six separate pieces connected by flexible wire, is all Apple. Each module has layers of varying sizes, so as the space narrows in the chassis, the battery shape can, too.


“There are endless numbers of stats out there, you can quote any of them to tell any story, but the number that closest reflects what we all experience and see as we travel around is actually a U.S. market share approaching 25 percent,” he said. “That closer reflects what we see when we go to the airport, when we go to the coffee shop, when we go to schools. You increasingly are seeing more Macs than PCs.”


He also rejects the idea that there’s a growing market for hybrids, or, to be more specific, laptops with touch screens that also happen to be tablets.