Your comment on

Name: 

Notify email: 

Comment:

  
       

home :: Dokumente :: Snippets

 | Page 1 of 11 total pages | Next

Sonntag, 18 September 2011


Shell script to change Modification date of bundles on MacOSX

Tagged as:


Mac Standalone applications created with Adobe Director 11 or later do not have the modification date of the day, the application was published. The reason is:

The bundle, which is a folder with a few never changing files and with your movie files, is copied from a template. It will always have the modification date from this template, as the folder itself is not changed.

The solution is to use the touch command line tool to change the modification date of the folder (what the Adobe engineers should have done in the first place...)

I made a simple shellscript in order to automate that tedious task. What it does is simply setting the modification date of the folder/app to the latest modification date of any contained file recursively.

Find it here:
http://www.farbflash.org/director/tools/synchFolderDate

or even better open your terminal and type the following:


cd ~/Desktop
curl http://www.farbflash.org/director/tools/synchFolderDate -O
sudo chmod 755 synchFolderDate
./synchFolderDate -h

In order to use it, type in your terminal:


./synchFolderDate

Instead of typing the you can just drag the folder/app into the terminal window, after the SPACE after "synchFolderDate"

You might also want to copy this script to one of the directories in your PATH in order to use it from anywhere inthe filesystem.


UPDATE:
I made a droppable application out of the above script. You can now just drag and drop folders onto that application. Download it here: http://www.farbflash.org/director/tools/synchFolderDate.cpgz and unstuff it by doubleclicking it.



Add comment | /Dokumente/Snippets | permanent link



Farbflash trac projects

Search

Tag cloud

Category
Show articles per page

RSS Feed

Links
  • 3DPI
    - Property Inspector to edit and explore all properties of a director #shockwave3d member. Without the 3DPI the whole 3-D stuff would be nearly undoable!
  • ULLALA
    Excellent examples and tutorials
  • DOUG
    Director online -- First place to look for Director related info
  • JAMES NEWTON
    another bunch of excellent demos and source code
  • MEKKA MEDIALIGHT LINGOWORKSHOP
    lots of excellent demos and source code from Luke Wigley
  • VALENTIN SCHMIDT
    lots of excellent xtras and source code. Home of the indispensable Shell Xtra!
  • XONKO
    Mark Hills site. Very good tutorials and other director and 3-D related stuff
  • INLUDO
    Barry Swans director demos and tutorials
  • Deans Director resources
    Dean Utians huge collection of resources and tutorials related to everything Director
  • THE HENDRIK DORGATHEN SITE
    not at all related to director, but one of my favorite graphic design art sites
  • SALINAS
    the site, of our local resistance against nuclear garbage (german)
  • TIMKID
    furniture for children (with some shockwave3d pieces)

Contact

Disclaimer

Donate
If one of the open source examples on this page helped you to get a paid job delivered, you might want to contribute and support my work by donating via PayPal...

Private
Login:
Passwort:

  
design and code by Alex da Franca