Set default app for file type on Mac

Login or Register for Dates, Times and to Reply

Thread Tools Search this Thread
# 1  
Question Set default app for file type on Mac

Hi there,

We have 2 apps on our customers machines that can both open files with the same file extension. Is there any way via shell commands to set which application should be the default?

Essentially, I'm hoping to replicate Get Info > Open With > Change All using a shell script, but I just can't find a way of doing it. I thought lsregister might be the way, but no luck Smilie

Thanks in advance!
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Is there a way to set ' and " as a non quotes type in bash?

Howdy, I got a script that adds a esc char before all chars interpeted by bash shell but I wan't other solution. Is there a way to set ' and " as a non quotes type in bash (some local variable)? Have found that scsh is a non-quoting type shell but after reading Why I don't use scsh as a scripting... (3 Replies)
Discussion started by: johny_be_good
3 Replies

2. Shell Programming and Scripting

Need Mac .sh to run command line app in seperate terminal

Hello, currently we are executing a .sh from terminal. The current .sh looks like this: #!/usr/bin/env bash /Users/user/ & -- Now, we also need to run a third line in the .sh - It's a command line application that I need to run when I execute the above .sh... (0 Replies)
Discussion started by: yoyoyo777
0 Replies

3. Programming

How to set DNS lookup type for getaddrinfo()?

Hi there, I'm trying to do an MX type lookup using getaddrinfo(), but I can't work out how to change the lookup type to MX from the standard A - can anybody tell me how to do this? Thanks very much John G (3 Replies)
Discussion started by: JohnGraham
3 Replies

4. Shell Programming and Scripting

Perform a set of actions for a specific file type

Hello, I have a problem that I'm having quite a bit of trouble with. I am trying to create a script that performs a specific sequence of actions for a file of a specific type. This is an abbreviated version of my basic script: #!/bin/sh #coulombic calculations... (2 Replies)
Discussion started by: oehtus
2 Replies

5. UNIX for Advanced & Expert Users

Cygwin <--> CMD App Problem (Terminal Type?)

I'm not sure if this is the right place to post this, but here it is. We have a nightly process that runs on an HP-UX box to stop our application and backend database servers, unmount their SAN hosted file systems, and then snapshot the SAN LUNs for backup and refresh of data on "report" and... (1 Reply)
Discussion started by: deckard
1 Replies

6. Solaris

set dir in zone fs type

Hi all, what is the meaning and what all value we can pass to set dir= in zone fs type when we are configuring whole-root zone? Thanks (3 Replies)
Discussion started by: kumarmani
3 Replies

7. UNIX for Advanced & Expert Users

How to Set Mime type to mailx

I have a problem while sending attachement , it is displying Content into body of mail (Junk Data) instead of attachment (zip format) in Linux, same code is working in Sun Solaris.. I have read query in this site , need to set MIME type to mailx componment. Please help me how to set MIME type..... (1 Reply)
Discussion started by: suneel
1 Replies
Gnome2::App(3pm)					User Contributed Perl Documentation					  Gnome2::App(3pm)

Gnome2::App - wrapper for GnomeApp HIERARCHY
Glib::Object +----Glib::InitiallyUnowned +----Gtk2::Object +----Gtk2::Widget +----Gtk2::Container +----Gtk2::Bin +----Gtk2::Window +----Gnome2::App INTERFACES
Glib::Object::_Unregistered::AtkImplementorIface Gtk2::Buildable METHODS
widget = Gnome2::App->new ($appname, $title=undef) o $appname (string) o $title (string) scalar = $app->accel_group $app->add_dock_item ($item, $placement, $band_num, $band_position, $offset) o $item (Gnome2::Bonobo::DockItem) o $placement (Gnome2::Bonobo::DockPlacement) o $band_num (integer) o $band_position (integer) o $offset (integer) widget = $app->add_docked ($widget, $name, $behavior, $placement, $band_num, $band_position, $offset) o $widget (Gtk2::Widget) o $name (string) o $behavior (Gnome2::Bonobo::DockItemBehavior) o $placement (Gnome2::Bonobo::DockPlacement) o $band_num (integer) o $band_position (integer) o $offset (integer) $app->add_toolbar ($toolbar, $name, $behavior, $placement, $band_num, $band_position, $offset) o $toolbar (Gtk2::Toolbar) o $name (string) o $behavior (Gnome2::Bonobo::DockItemBehavior) o $placement (Gnome2::Bonobo::DockPlacement) o $band_num (integer) o $band_position (integer) o $offset (integer) scalar = $app->contents $app->set_contents ($contents) o $contents (Gtk2::Widget) $app->create_menus ($uiinfo) o $uiinfo (Gnome2::UIInfo) $app->create_toolbar ($uiinfo) o $uiinfo (Gnome2::UIInfo) scalar = $app->dock dock = $app->get_dock dockitem = $app->get_dock_item_by_name ($name) o $name (string) $app->enable_layout_config ($enable) o $enable (boolean) scalar = $app->get_enable_layout_config $app->insert_menus ($path, $menuinfo) o $path (string) o $menuinfo (Gnome2::UIInfo) $app->install_menu_hints ($uiinfo) o $uiinfo (Gnome2::UIInfo) scalar = $app->layout scalar = $app->menubar $app->set_menus ($menubar) o $menubar (Gtk2::MenuBar) scalar = $app->prefix $app->remove_menu_range ($path, $start, $items) o $path (string) o $start (integer) o $items (integer) $app->remove_menus ($path, $items) o $path (string) o $items (integer) Gnome2::App->setup_toolbar ($toolbar, $dock_item) o $toolbar (Gtk2::Toolbar) o $dock_item (Gnome2::Bonobo::DockItem) scalar = $app->statusbar $app->set_statusbar_custom ($container, $statusbar) o $container (Gtk2::Widget) o $statusbar (Gtk2::Widget) $app->set_statusbar ($statusbar) o $statusbar (Gtk2::Widget) $app->set_toolbar ($toolbar) o $toolbar (Gtk2::Toolbar) scalar = $app->vbox PROPERTIES
'app-id' (string : default undef : readable / writable / construct) The application ID string ENUMS AND FLAGS
flags Gnome2::Bonobo::DockItemBehavior o 'normal' / 'BONOBO_DOCK_ITEM_BEH_NORMAL' o 'exclusive' / 'BONOBO_DOCK_ITEM_BEH_EXCLUSIVE' o 'never-floating' / 'BONOBO_DOCK_ITEM_BEH_NEVER_FLOATING' o 'never-vertical' / 'BONOBO_DOCK_ITEM_BEH_NEVER_VERTICAL' o 'never-horizontal' / 'BONOBO_DOCK_ITEM_BEH_NEVER_HORIZONTAL' o 'locked' / 'BONOBO_DOCK_ITEM_BEH_LOCKED' enum Gnome2::Bonobo::DockPlacement o 'top' / 'BONOBO_DOCK_TOP' o 'right' / 'BONOBO_DOCK_RIGHT' o 'bottom' / 'BONOBO_DOCK_BOTTOM' o 'left' / 'BONOBO_DOCK_LEFT' o 'floating' / 'BONOBO_DOCK_FLOATING' SEE ALSO
Gnome2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Bin, Gtk2::Window COPYRIGHT
Copyright (C) 2003-2004 by the gtk2-perl team. This software is licensed under the LGPL. See Gnome2 for a full notice. perl v5.14.2 2011-11-16 Gnome2::App(3pm)

Featured Tech Videos