Skip to content

Commit

Permalink
Added CFBundleDocumentTypes to (Info.)plist
Browse files Browse the repository at this point in the history
This will assign the OpenSesame icon to .opensesame files and open the Opensesame.app when double clicking on an .opensesame file.
The Opensesame.app will only open (and not open the .opensesame file that was double clicked) because the right Apple Events are not yet included in OpenSesame.
The .gz files are handled by other apps by default on OSX, but this change will add the OpenSesame.app to the menu when right clicking a .opensesame.tar.gz file (or in fact any .gz file).
Also updated Usage comment and version.
  • Loading branch information
JdenHartog committed Oct 30, 2015
1 parent e6fce22 commit bd12a7a
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions setup-mac.py
Expand Up @@ -20,7 +20,7 @@
This scripts builds OpenSesame as a standalone application for Mac OS.
Usage:
python setup.py py2app
python setup-mac.py py2app
"""

from setuptools import setup
Expand Down Expand Up @@ -69,11 +69,24 @@
'iconfile' : 'resources/opensesame.icns',
'plist': {
'CFBundleName': 'OpenSesame',
'CFBundleShortVersionString':'2.9.4',
'CFBundleVersion': '2.9.4',
'CFBundleShortVersionString':'2.9.7',
'CFBundleVersion': '2.9.7',
'CFBundleIdentifier':'nl.cogsci.osdoc',
'NSHumanReadableCopyright': 'Sebastiaan Mathot (2010-2015)',
'CFBundleDevelopmentRegion': 'English',
'CFBundleDocumentTypes': [
{
'CFBundleTypeExtensions' : ['opensesame'],
'CFBundleTypeIconFile' : 'opensesame.icns',
'CFBundleTypeRole' : 'Editor',
'CFBundleTypeName' : 'OpenSesame File',
},
{
'CFBundleTypeExtensions' : ['gz'],
'CFBundleTypeIconFile' : 'opensesame.icns',
'CFBundleTypeRole' : 'Editor',
}
]
}
}
},
Expand Down

0 comments on commit bd12a7a

Please sign in to comment.