• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Finding lines containing foo in a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Finding lines containing foo in a file (From: "Stockly, Ed" <email@hidden>)

  • Prev by Date: Re: Best practices for creating and comparing lists of text?
  • Next by Date: Re: exists ... index 0 returns true
  • Previous by thread: Re: Finding lines containing foo in a file
  • Next by thread: Re: Finding lines containing foo in a file
  • Index(es):
    • Date
    • Thread