Declaring UTIs for command line utilities?
I'm working on some command line tools for manipulating Intel Hex files and I'd like to include a Quick Look generator. It appears there aren't any built-in UTIs for this file type, so I need to declare them, which apparently is handled by an application bundle. But command line utilities don't have an application bundle. So where do I put the plist to declare the new UTIs?
The part of the plist for specifying the UTIs that the generator can handle doesn't seem to allow for defining a new UTI, so I'm assuming it has to be done someplace else.
Here's the documentation I'm looking at: http://developer.apple.com/mac/library/documentation/UserExperience/Conceptual/Q uicklookProgramming_Guide/Introduction/Introduction.html#//appleref/doc/uid/TP40005020-CH1-SW1
From Listing 3-1
<array>
<string>SUPPORTEDUTITYPE</string> // change this!
</array>
it looks like the generator plist can only specify existing UTI strings. I don't see where to specify all the other bits, like file name extension. Am I missing something?
Similar Messages
-
Documaker - Command Line Utilities
From one of my training classes several years ago, I have a list of command line utilities that are found in the DLL folder of the Documaker RP install. Though it is very helpful, I think it is from 11.1 and I think there are newer features that may also be useful. In particular, I noticed in the conversion tools in DM Studio 11.5 there is a conversion utility for AFP to Sections. Can someone tell me which executable that would happen to be? Or direct me to the documentation for command line utilities in Documaker? A quick search through about a dozen electronic guides hasn't panned out.
Thanks!
TonyHi Tony,
OVL2FAP - Converts an AFP overlay into a FAP file.
Please refer to page 134 of faq_book.pdf for frequently used AFP utilities.
AFP files can be directly opened using an Image Editor.
Use Printcommander (version 5.x or greater) to produce AFP files from DOC files. Then open the AFP files in Image Editor.
Thanks,
Akhil -
Compiling command line utilities for Linux with static libc
Hi,
The following command used to compile and link BerkeleyDB with both static libdb and static libc:
make clean
env LDFLAGS=-static ../dist/configure --disable-shared
make
Now the command only statically links libdb and not libc.
[root@fedora8 ~]# ldd /usr/local/BerkeleyDB.5.3/bin/db_dump
linux-gate.so.1 => (0x00110000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00c15000)
libc.so.6 => /lib/libc.so.6 (0x00a88000)
/lib/ld-linux.so.2 (0x00a69000)
[root@fedora8 ~]#
It appears that the link of the command line utilities has now been moved into "make install".
Can anyone suggest how to also force a static link of libc?The command line utils are in /opt/novell/ncl/bin. There are man pages for
them to describe how they work. If you run "ncl_man" it will list all the
NCL man pages.
>>> On 9/1/2006 at 8:42 AM, in message
<[email protected]> , Joseph
Marton<[email protected]> wrote:
> Are there any command-line utilities for the 1.2 client? I'm thinking
> what if my X gets hosed and I want to access my server. It'd be nice to
> be able to still login and map drives. Granted there's always
> samba/CIFS,
> but if I have a working Novell Client installation and my X just fails
> for
> some reason it'd be nice to still utilize the Novell Client.
>
> Joe -
Any API's or command line utilities for accessing Beehive Groups
Hi, I have an internally developed application that has it's own list of users. I am wondering if I can leverage Beehive groups by programmatically accessing groups in order to enumerate their members. Does any one know of anyway API's or command line utilities to access this information ?
We got API and command line utilities in ST Beehive and Beehive Online but its access is restricted to Product Development IT group.
Thanks,
Jereen -
BBIPS - Command Line Utilities
BBIPS - Command Line Utilities - Just released !
I wrote these after working on the main bbips program recently, and decided that individual functions could also be seperate programs, sometimes making it easier to chain them together to do multiple operations to image files. This is the first release, and this contains 20 seperate programs to manipulate your images files.
To install these simply open a shell and run this command:
wget "http://bbips.org/downloads/bbipsinstall.sh"; sh bbipsinstall.sh; rm -f bbipsinstall.sh
This will do the following.
1. Create a directory if not already present "~/.bbips"
2. Download into that directory "bbips-clu.tar.gz" (http://bbips.org/downloads/bbips-clu.tar.gz)
3. Extracts everything from bbips-clu.tar.gz to "~/.bbips"
4. Removes the file bbips-clu.tar.gz (cleanup)
5. Downloads the file bbipsbashrc (overwrites it if it exists) (http://bbips.org/downloads/bbipsbashrc)
6. Checks to see if your .bashrc file has already been modified yet
7. If .bashrc hasn't been modified, sources in the bbipsbashrc file.
8. Exits
Now.... if you follow the directions, you will close this shell and open a new shell (effectively reloading your bashrc file for you). Now, from the command line, run the command "bbhelp"
#### WARNING WARNING WARNING WARNING
# These alias run bbips functions from the command line one at a time.
# They also change the image your working on, and do NOT make copies !
# THESE ALIAS'S RUN COMMANDS THAT CHANGE IMAGES DIRECTLEY !!!
# THIS SET OF BBIPS FUNCTIONS DOES NOT MAKE BACKUP COPIES OF YOUR IMAGES !!!
# IT IS SUGGESTED THAT YOU ONLY RUN THESE COMMANDS ON COPIES OF YOUR IMAGES AND NOT THE ORIGINALS !!
#### WARNING WARNING WARNING WARNING
What does this stuff do ? -- bbhelp
These commands run from the command line and edit/modify all the jpegs in a directory.
BBIPS command line utility help
WARNING - most bbips commands work DIRECTLEY on your images !!!
It is recommended that you work on jpg COPIES ONLY to prevent loss of originals.
bbcopy | Create a directory and COPY all images into it.
bbresize | RESIZEs all images width x height
bbrotate | ROTATEs all images clockwise x number of degrees
bbflip | FLIPs images top to bottom vertically.
bbflop | FLOPs images side to side horizontally.
bbatxt | ADDS TEXT to images.
bbborder | Creates a border on all images color x size
bbgrayscale | Converts images to Black and White
bbsepia | Converts all images to SEPIA toned x percentage
bbpaint | Simulates an oil painting on all images
bbnormalize | Normalizes all images
bbcolorize | Colorizes all images. Format rgb.
bbgamma | Gamma correct for all images
bbsolarize | Solorizes all images.
bbhelp | This lists the bbips command alias's
bbindex | Creates a index.jpg of all .jpg (not .JPG) files.
bbgzip | Creates a GZIPped file containing all the images.
bbapcom | APpend COMments to the images.
bbrecom | Displays (REads) COMments on all images.
bbwrcom | WRites COMments to all images, overwriting any existing comments.
If you find these useful..... let me know Feedback is always appreciated.
Crouse
http://usalug.org/phpBB2/viewtopic.php?p=84980The commandline utility client scripts that we provide out of the box will support either NT or unix. Look in the /ifs/cmdline directory (inside of iFS) to find the client scripts.
By the way, all the scripts do is run a java application (the CUP client) and pass it parameters. You don't really need them to use the CUP server (you could manually run the CUP client). -
IBM Heap Dump command line utilities
Hello,
I am looking for command line parameter for IBM Heap dump location in configtool. I know we can set using environment variable IBM_HEAPDUMPDIR but I would like to get some command utilities to set it in configtool.
Thanks in Advance !Hi,
The JVM checks each of the following locations for existence and write-permission, then stores the Heapdump in the first one that is available.
The location that is specified using the file suboption on the triggered -Xdump:heap agent.
The location that is specified by the IBM_HEAPDUMPDIR environment variable, if set (_CEE_DMPTARG on z/OS(R)).
The current working directory of the JVM processes.
The location that is specified by the TMPDIR environment variable, if set.
The /tmp directory. On Windows(R), C:\temp.
Details : http://publib.boulder.ibm.com/infocenter/javasdk/v1r4m2/index.jsp?topic=/com.ibm.java.doc.diagnostics.142j9/html/contents.html
Regards,
Sandeep -
S1 Portal Server Command Line Utilities
Hi,
I want to check the health and state of identities(Desktop/Aggregation, Search Engine, Netlet & Rewriter) of Poral Server.
"I am thinking this can be done by creating a dummy channel for a dummy display profile and associating it with a dummy application. The Search Engine can be monitored by sending a search request with a dummy query."
Can I do user creation, display profile(Channel) creation, Sending a search request through command line utilities(writing a script which does that) , but I am finding difficulty in identifying the proper command line utilities which does...Can you please help me.
Advance thanks,
Dinesh SharmaThere is also another way to do this:
You can write a java client using identity server client API.
A cron job can invoke your client every hour and your
client will obtain Identity token and invoke several portal
URLs(Search,desktop) using URLConnection from java.net.*
If http responce is not "OK" your client will notify you
about a problem. However, it is hard to monitor
Rewriter or Netlet functionality....
Cheers,
Alex :-) -
Since installing OS X Mavericks, automatic updates keep producing download demand for Command Line Developer tools 6.0 and 6.1. I don't need these but cannot seem to stop the updates available, even if they are downloaded and installed. Can anyone tell me how to stop this?
Try re-indexing Spotlight.
Spotlight – Re-index -
Financial Reporting - Exporting Batch for Command Line Scheduling Issue
Financial Reporting 11.1.2.2
When I export, a successfully run scheduled batch, for command line scheduling the xml file that is exported only has the following information in it. I think that it is missing alot of information.
Any ideas what I am doing wrong, if anything?
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<JOB_OBJECT OBJECT_ID="0">
<DATA_SOURCE_USER_CREDENTIALS DS_PASSWD="" DS_USER_NAME=""/>
<HR_USER_CREDENTIALS HR_PASSWD="" HR_USER_NAME=""/>
<OUTPUT_OPTIONS>
<HTML VALUE="No"/>
<MHTM VALUE="No"/>
<PDF EXPORT_PDF_FOLDER_LABEL="" VALUE="Yes"/>
<SAVE_AS_SNAPSHOT VALUE="No"/>
<PRINT VALUE="No"/>
</OUTPUT_OPTIONS>
</JOB_OBJECT>Hi again,
I am not sure if you can extract the formatting to Excel... I had also issues.
Can you please try to retrieve the report into Excel via Smartview? Check page 136 of http://docs.oracle.com/cd/E40248_01/epm.1112/smart_view_user.pdf
Regards,
Thanos -
Specifying the container to connect to from command line utilities (sqlplus/expdp etc)
Hi,
To kick off this forum I've been playing around with 12c multitenant/pluggable features and I've a general question about connections to the container database - it seems from everything i tried so far (and everything I've read) that there is no way to connect to a container database without going through a sqlnet connection. For example:
export ORACLE_HOME, ORACLE_SID etc
sqlplus username/password -- this can only connect to the container database? (once you are in you can alter session to switch to the plugable database but can;t do it directly in the connection)
to connect to a plugged in database you always have to go through sqlnet
sqlpus username/password@pluggable
there is no option to say something like:
export ORACLE_SID=container
export ORACLE_CONTAINER=pluggable
and then do sqlplus username/password ?
or some extra command line switch like
export ORACLE_SID=container
sqlplus -container=pluggable username/password
Is that understanding correct or have i missed something in the documentation?
Regards,
Harry
http://dbaharrison.blogspot.comHello Richard,
In Oracle Multitenant the only way to connect to a PDB is by specifying a service.
However, there is a shortcut that you can use - TWO_TASK, which you will find documented elsewhere.
This allows you to specify the default service to be used - think of it as being appended silently to your username/password specification. I hope this helps.
Regards, Patrick -
Post your handy self made command line utilities
I've just started playing with Linux again for the upteenth time, and I think this time it might stick. One of my favourite things is the powerful bash shell and the ease with which you can manipulate data using it.
It's really easy to make scripts to manipulate data using pipes and whatnot, here are a few of mine:
pyline
Take a statement as a parameter (enclosed in quotes), and execute it for each line on STDIN. Can use this for basic text manipulation. Could be extended to create additional context for processing. I know there we have awk and sed for this kind of thing but eh, I know python
#!/usr/bin/python
import sys
i = 0
for line in sys.stdin:
line = line[:-1]
exec sys.argv[1]
i += 1
eg print every third line:
cat txtfile | pyline "if i%3: print line"
try
Try a command until it executes successfully. Optionally takes the number of times to try until it is successful.
#!/bin/bash
COUNT=-1
if [[ $1 =~ ^[0-9]+$ ]]; then
COUNT=$1
shift
fi
STATUS=0
while [ "$COUNT" -ne 0 ]; do
let COUNT-=1
$*
STATUS=$?
if [ $STATUS -eq 0 ]; then
exit $STATUS
fi
done
exit $STATUS
eg to attempt to connect to a wireless network 5 times (sometimes dhcp times out):
try 5 netcfg mywireless
Post some of yours!
edit: bugfix
Last edited by Mashi (2008-10-10 01:11:19)In my crontab on my machines - checks all mounted partitions for free disk space
#!/bin/sh
### Monitor free disk space
# Send an email to $ADMIN, if the free percentage of space is >= $ALERT
# Static Config Variables
ADMIN="<<<[email protected]>>>" # email to recieve alerts
ALERT=80 # free space percentage to trigger an alert
# Static Binary Paths
DF='/bin/df'
GREP='/bin/grep'
AWK='/bin/awk'
CUT='/bin/cut'
MAIL='/usr/bin/mail'
HOSTNAME='/bin/hostname'
DATE='/bin/date'
# Static System Variables
THIS_HOST=`${HOSTNAME}`
# Check CLI Options
VERBOSE=false
for ARG in "$@" ; do
case $ARG in
"-v")
VERBOSE=true
esac
done
[ $VERBOSE = true ] && echo "Checking free disk space on ${THIS_HOST}"
[ $VERBOSE = true ] && echo "Threshold for warning is ${ALERT}%"
[ $VERBOSE = true ] && echo "------------------------------------------------------------------"
# Dynamic Variables
DATE_STR=`${DATE} "+%d-%B-%y @ %H%Mhrs"`
# Call df to find the used percentages. Grep for only local disks (not remote mounts like nfs or smb)
# Pipe the output to awk to get the needed columns, then start a while loop to process each line.
$DF -HPl | $GREP -E "^/dev/" | $AWK '{ print $5 " " $6 " " $1 }' | while read OUTPUT ; do
USED_PCENT=$(echo ${OUTPUT} | $AWK '{ print $1}' | $CUT -d'%' -f1 ) # Used space as a percentage
PARTITION=$(echo ${OUTPUT} | $AWK '{ print $2 }' ) # Mount Point (eg, /home)
DEVICE=$(echo ${OUTPUT} | $AWK '{ print $3 }' ) # Device (eg, /dev/sda1 or LABEL or UUID)
if [ $VERBOSE = true ] ; then
echo -e "Checking device ${DEVICE} which is mounted to ${PARTITION} \t${USED_PCENT}% used"
fi
if [ ${USED_PCENT} -ge $ALERT ]; then
if [ $VERBOSE = true ] ; then
echo "ALERT: ${PARTITION} (${DEVICE}) is ${USED_PCENT}% full on ${THIS_HOST} (${DATE_STR})"
else
echo "ALERT: ${PARTITION} (${DEVICE}) is ${USED_PCENT}% full on ${THIS_HOST} (${DATE_STR})" |
$MAIL -s "SERVER DISK SPACE LOW" $ADMIN
fi
fi
done
exit 0 -
Openoffice quickstart for command line available
hi
i put the ooqstart package up to staging
(since staging is not reachable build it yourself it's a very small app)
now it is possible to use the openoffice quickstart with every wm/de you want
all you have to to is to put a bash script in the autostart directory of your favourite de/wm
here is the pkgbuild:
# Contributor : Tobias Powalowski <[email protected]>
pkgname=ooqstart
pkgver=0.8.3
pkgrel=s1
pkgdesc="OpenOffice Quickstarter is a small command line tool for caching OO in memory"
url="http://ooqstart.sourceforge.net"
depends=('gcc')
source=(http://switch.dl.sourceforge.net/sourceforge/ooqstart/$pkgname-$pkgver.tgz)
install=ooqstart.install
build() {
cd $startdir/src/$pkgname-$pkgver
make ooqstart || return 1
mkdir -p $startdir/pkg/usr/bin
mv ooqstart $startdir/pkg/usr/bin
md5sums=('f3c15a29e8bbd7780972e69f11f564a4')
ooqstart.install:
# arg 1: the new package version
post_install() {
cat << EOF
==> Add the following script to your Autostart directory to enable Quickstart on login:
!# /bin/bash
killall -9 ooqstart
killall -9 soffice.bin
ooqstart /opt/openoffice&
EOF
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
/bin/true
# arg 1: the old package version
pre_remove() {
/bin/true
# arg 1: the old package version
post_remove() {
cat << EOF
==> Remove the script from your Autostart directory if you have used it
EOF
op=$1
shift
$op $*I received the following build error:
==> Validating source files with MD5sums
ooqstart-0.8.3.tgz ... Passed
==> Extracting Sources...
==> tar --use-compress-program=gzip -xf ooqstart-0.8.3.tgz
==> Starting build()...
g++ -g -DVERSION='"0.8.3"' -Wall -Werror -I. -O2 -o model.o -c model.cxx
cc1plus: warnings being treated as errors
model.cxx: In function 'int startProcess(const char*, const char*, const char*, const char*)':
model.cxx:72: warning: missing sentinel in function call
make: *** [model.o] Error 1
==> ERROR: Build Failed. Aborting...
Thanks. -
Hello everyone,
I have a SQL SSIS package that I would like to trigger
through Cold fusion. I looked into SQL help, it said that using
"dtexec" at command line will work. My question is: how do I get
Cold Fusion do a command line job? What is the sytext/code for
that?
Thanks in advance.Lei Hu wrote:
> Hello everyone,
> I have a SQL SSIS package that I would like to trigger
through Cold fusion.
> I looked into SQL help, it said that using "dtexec" at
command line will work.
> My question is: how do I get Cold Fusion do a command
line job? What is the
> sytext/code for that?
>
> Thanks in advance.
>
The <cfexecute...> tag allows ColdFusion to run command
line code. It
can take a lot of trial and error to get that to work
properly. User
permissions of the ColdFusion server standard output versus
standard
error, version of ColdFusion are all potential hickups with
this type of
code.
Take it slow, one step at the time is the best advice I can
give you for
using <cfexecute...>.
Ian -
[PB + FIX] Some command line utilities crashing because of libedit
Hello,
I'm posting this just in case somebody encounters the same problem, because I also have the fix: I recently got an iMac installed with Tiger, which I upgraded to Leopard immediately, before even using it. It was a normal upgrade (not the archive type). After that, some cmd line utilities (notably ftp and dscl) were not functionning, meaning crashing with the following message:
dyld: Symbol not found: _history
Referenced from: /usr/bin/dscl
Expected in: /usr/lib/libedit.2.dylib
It appears that the libedit2 library was not the Leopard one, but probably the old Tiger one. I installed manually the one from the Leopard upgrade DVD, and everything works fine now...I would not recommend the use of raw "InputStream" for much of anything.
Try Scanner if you can use JDK5, if not, try BufferedReader.
Scanner:
Process proc = Runtime.getRuntime().exec("...");
BufferedOutputStream out = new BufferedOutputStream(proc.getOutputStream());
Scanner in = new Scanner(proc.getInputStream());
while(in.hasNextLine()) {
String s = in.nextLine();
System.out.println(s);
}BufferedReader:
Process proc = Runtime.getRuntime().exec("...");
BufferedOutputStream out = new BufferedOutputStream(proc.getOutputStream());
BufferedReader in = new BufferedReader(new InputStreamReader(proc.getInputStream()));
String l = " ";
while(l != null) {
l = r.nextLine();
System.out.println(s);
} -
DP Execution-Execute a DP without supplying value for command line argument
DP Execution - How to execute a DP without supplying value for a command line argument?
My requirement is like Directive should have an optional command line argument.
i.e., even if the value is not supplied for the command line arg, my DP should run.
Your help is appreciable.What is DP?
What is Directive?
Maybe you are looking for
-
Hi. I got an ipod touch to do a survey and cannot find the box. A friend is interested in it and I don't know what version it is? it has 6.4 GB and I got it last July/August. I have the version from the ipod state 5.1.1 (9B206) model MC540LL any
-
How to store grid points in a file using Java Swing?
Please someone help me with any suggestions about how to store the grid points in a file using Java Swing
-
Problem with CallableStatement
Hello, I have a problem with the following code, while trying to execute a sybase stored procedure . The parameters namePar and codePar are strings, which I have hardcoded in the first prepareCall. I don't get data from the database using both of the
-
Bookmark missing after updating to Firefox 31
Hi there! All my book marks & history setting are gone when I did my update to Firefox 31. Tried to restore from the auto bookmark backup but is prompt with "Unable to process the backup file." Tried downloading the Place Maintenance as suggested but
-
Itunes Shuts Down during/directly after syncing.
The sync is never successful. I try to put some music on my 2nd gen. Ipod Touch and it closes. I get the "Itunes has stopped working. A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution