Search Results

Search: Posts Made By: davewg
3,111
Posted By davewg
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?
...
Forum: OS X (Apple) 08-13-2009
2,306
Posted By davewg
Programatically change which opens a file type
Hi there,

If we have 2 apps on our customers machines that can both open files of a certain file extension, is there any way via shell commands to set which application should be the default?
...
3,895
Posted By davewg
Perfect! Thank you for such a quick solution :)
Perfect! Thank you for such a quick solution :)
3,895
Posted By davewg
Read from text file misses first line
Hi!

I need to read in the first line from a text file (which will only ever have one line in it), so I tried this....

while read line
do
echo $line
done < $file

But this wasn't returning...
2,449
Posted By davewg
:rolleyes: Hi, thanks for your response,...
:rolleyes:

Hi, thanks for your response, that's really helpful. This is the 'UNIX for Dummies' forum - "All UNIX and Linux newbies welcome" - hence there perhaps be a slight lack of understanding...
2,449
Posted By davewg
Hi, I was getting 'too many arguments' error...
Hi, I was getting 'too many arguments' error message, but your recomendation works a treat! Thanks for your help :)
2,449
Posted By davewg
Combining Expressions
Hi there,

I'm having some trouble with a script were I want 2 expressions to evaluate to true before my if loop will continue...

if [ `echo $line|grep "string"` -a $var -eq 1 ] ; then

Both...
7,229
Posted By davewg
Tiger is definitely handling these numbers...
Tiger is definitely handling these numbers differently - when I run the code in Leopard the results are;

1
0
0
0

and in Tiger...

0
0
0
0

:confused:
7,229
Posted By davewg
I should just point out that whilst this...
I should just point out that whilst this comparison works ok in Leopard (10.5.6), on Tiger (10.4.11) it always returns success regardless of the numbers it is comparing. :(
7,229
Posted By davewg
That works a treat! thank you for your help :)
That works a treat! thank you for your help :)
7,229
Posted By davewg
Apologies I should of been more clear in my post...
Apologies I should of been more clear in my post but thank you for your response.

I tried running the example code, but unforunately some errors were returned in Terminal (terminal shell set to...
7,229
Posted By davewg
It's just for a script in an installer package...
It's just for a script in an installer package that needs to check the OS version to ensure it's suitable.

So I have for example decided that 10.4.6 is the required version my install needs and a...
7,229
Posted By davewg
Comparing Version Numbers
Hi There!

Apologies if this has been asked previously but I couldn't find the answer I was hoping for.

Basically, all I want to do is compare the OS X version against the version that I require...
Forum: OS X (Apple) 11-20-2008
4,037
Posted By davewg
Check for open application
Hi there,

Is there any command to check if a particular application is open on a mac?

thanks

:)
8,438
Posted By davewg
SOLVED - Hi I've created a routine in perl that...
SOLVED - Hi I've created a routine in perl that will read this key :)
8,438
Posted By davewg
Using defaults read to get value from plist
Hi there,

I'm trying to retrieve a value from a plist file, which I have done before with no problems, however this plist file looks a little different....

Normally it's like this;
<plist...
17,584
Posted By davewg
Perfect!
that's works perfectly! thank you very much for your help. :)
17,584
Posted By davewg
List files with date and time stamps only
Hi there,

I'm using terminal on mac and using the ls -l command to list all the files in a directory. However, I only want to display the date and time stamp of each file rather than permissions,...
5,467
Posted By davewg
Using 'defaults read' and storing the output in a variable
Hi all,

I'm creating a script which uses 'defaults read' to retrieve details from an Info.plist like this;

defaults read "/Path/Contents/Info" CFBundleShortVersionString

This works fine in...
23,593
Posted By davewg
Thank you very much everybody for your help!
Thank you very much everybody for your help!
23,593
Posted By davewg
Extract numbers from a string and store in variables
Hi All,

Is it possible in Unix shell script to extract numbers from a string containing ".", such as;

5.2.314

And store in variables so;

var1 = 5
var2 = 2
var3 = 314

Thanks in...
48,286
Posted By davewg
Finding file version info
Hi,

Is there a standard command for retrieving the version of any given file (assuming the file has a version)?

Thanks in advance

Dave
:)
Showing results 1 to 22 of 22

 
All times are GMT -4. The time now is 07:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy