Re: Finding lines containing foo in a file
Re: Finding lines containing foo in a file
- Subject: Re: Finding lines containing foo in a file
- From: Emmanuel <email@hidden>
- Date: Thu, 22 Dec 2005 00:46:58 +0100
At 3:08 PM -0800 12/21/05, Stockly, Ed wrote:
The problem is if the target file is on the top level of the startup
volume or on the network, it still doesn't work, giving me either
"type 1 error" or "input/output error". (This script is meant for
users off-site who, as mac users do, put files wherever they damn
well feel like it, so unless this!
can be fixed we can't use it.)
This really shouldn't be this difficult.
In case it helps, on my machine (where I am the only user and admin),
I made a new folder directly in the startup volume, then a text file
in the folder, and I could run the following line successfully:
do shell script "grep 'font' /CatalogStuff/prdItem.txt"
Now, on the network, I didn't try, but I suppose that you have to
provide the mount point of the external volume, which is not the
easiest thing to grab on a Mac. In particular, IIRC "POSIX path" is
not very good at that.
Emmanuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden