#!/usr/bin/env python # -*- coding: utf-8 -*- import sys try: # Please do not use 'from scribus import *' . If you must use a 'from import', # Do so _after_ the 'import scribus' and only import the names you need, such # as commonly used constants. import scribus except ImportError,err: print "This Python script is written for the Scribus scripting interface." print "It can only be run from within Scribus." sys.exit(1) frame = scribus.getSelectedObject(); scribus.selectText(0, scribus.getTextLength(frame), frame); scribus.setStyle('a');