• 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: Searching for a folder on a mounted share?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Searching for a folder on a mounted share?


  • Subject: RE: Searching for a folder on a mounted share?
  • From: Gary Bielby <email@hidden>
  • Date: Wed, 4 Oct 2006 11:57:11 +0100

Hi Rob,
If you have access to a terminal you can do a unix cmd 'find':
 
find ./ -name APPLESCRIPT -print
 
This will search from the current dir for a file/folder called 'APPLESCRIPT' and return the dir location.
 
To speed things up store this location the first time you run your script and check if it's in the same place the next time. If the folder has moved then do another find.
 
Regards, Gary.
 
-----Original Message-----
From: applescript-users-bounces+gary.bielby=email@hidden [mailto:applescript-users-bounces+gary.bielby=email@hidden]On Behalf Of Rob Stott
Sent: 04 October 2006 07:59
To: AppleScript Users
Subject: Searching for a folder on a mounted share?

Hi all,

I have a mounted share which has a somewhat chaotic and vast folder structure (not my doing, honest!). I want to search for a particular folder name on that share (it could be anywhere). I can think of a couple of ways of doing this, namely;

1) A recursive scan through the hierarchy every time I want to look for a folder (time consuming)
2) Creating a database of all files on the share overnight and searching that (faster, but obviously always slightly out of date)

I'm sure (and I hope) there must be a better way - can anyone suggest anything?

Thanks
Rob

---

Rob Stott
Production Workflow Developer

Watt Gilchrist Ltd, Albion Mills, Albion Road
Greengates, Bradford, BD10 9TQ, United Kingdom

http://www.gilchrist.co.uk
Internal extension: 467






This e-mail is from the PA Group. For more information, see www.thepagroup.com.


This e-mail may contain confidential information. Only the addressee is permitted to read, copy, distribute or otherwise use this email or any attachments. If you have received it in error, please contact the sender immediately. Any opinion expressed in this e-mail is personal to the sender and may not reflect the opinion of the PA Group.


Any e-mail reply to this address may be subject to interception or monitoring for operational reasons or for lawful business practices.





 _______________________________________________
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

  • Prev by Date: Searching for a folder on a mounted share?
  • Next by Date: Re: File Busy
  • Previous by thread: Re: DateBug?
  • Next by thread: Re: File Busy
  • Index(es):
    • Date
    • Thread