Tag Archives: osx

Captivate 7 Fail #3: No Mavericks for You

[Update: Adobe released an updated 20 November. Details and download links here.]

So not only do I have a product that I cannot install, or that doesn’t do what it says on the box re: TInCan, I now find out that it only works with old operating systems.

Just installed OSX Mavericks on my MBP. And while it appears to work fine (albeit a bit slower?), discovered today that the spirit of cooperation does not extend to Captivate 7. It completely fails to launch under Mavericks.

Quick visit to Adobe site and (surprise surprise) nothing officially announced. But dig into the forums and found this thread with this money quote from a member of the Captivate team.

23 October: We are working on it as I write and will have an update in next couple of weeks

As one of the posters pointed out, it’s not like Mavericks was a complete surprise. And DEV builds are available in advance precisely to test your apps with. Instead we get a vague “see you when you we see you” missive buried in a forum post. This on arguably the OS where most Adobe users will be hanging out, trying to earn a living.

Disappointed.

OSX Terminal Does Image Editing. Who Knew?

Wonders never cease.

Thanks to Cory at maclife, just discovered that OSX Terminal has a built in image resizing tool, SIPS.

You can read the official manual entry for SIPS to see the full power. But here’s some simple examples that I was using an image resizing tool for.

(1) resize all JPGs in current folder to fit in a box 800×800

 sips *.jpg -Z 800 

This will automatically find the largest dimension (width or height), resize that to be 800 and adjust the other to keep the same aspect ratio. Noice.

(2) resize all PNGs in current folder to 100 wide (keep aspect ratio)

 sips *.png --resampleWidth 100 

You can guess what the command is to set the height instead of width.

Works really well, and really fast. But beware of a couple of limitations.

  • edits the original file directly. If worried take copies beforehand.
  • doesn’t support changing the filename. If needed you’ll need to do that step separately before/after.

Getting the iPhone simulator to recognise sqlite database changes done in Terminal

I’ve been tearing my hair out for an afternoon working with a simple DB application for the iPhone/iPad. Essentially it connects to a sqlite3 database as the source file. But each time I edited that database content in Terminal, nothing was changing in the application when run.

Finally a solution. Need to reset the simulator itself to remove the local copy taken/needed when running a DB application.

Option you need is Reset Contents and Settings… under the iPhone Simulator menu.

Once reset when the application is run it pulls the updated database across as its copy. Phew!

Recursive folder content lists in OSX

Every now and then you’re really grateful OSX is essentially Unix with a smiley face. Since that allows you to easily get under the hood for those “should be simple” tasks.
For this one, I needed to produce a list of files within a collection of folders which, for demonstration purposes, we’ll call media files.

Recursive file list

This is easy:

  1. Open a terminal window
  2. Type cd (there’s a space after ‘cd’)
  3. Drag the folder you want to start from into the terminal window. It should then complete the path automagically.
  4. Press Enter to navigate to the selected folder.
  5. Enter the command ls -RF > list.txt

This will produce a list of all files in the directory, and subdirectories, as list.txt in the starting directory. Feel free to give it a more useful name.

Once more, with filters

So now you’ve got a list of all the files in the folders. But if you want to find a subset based on filename (say, for example, the list of media files identified in the title as being 2009 releases) then use the wonders of unix to ‘pipe’ the file list to GREP to filter it before writing the file:

ls -RF | grep '2009' > 2009.txt

This will produce a list of only those files with ’2009′ somewhere in the title.

Advanced options

Armed with LS and GREP you can pretty much produce any subset of any folder set you require. Enjoy!