Networking / AS query
Networking / AS query
- Subject: Networking / AS query
- From: email@hidden
- Date: Mon, 15 Nov 2004 17:19:29 -0000
Title: Networking / AS query
(I sent this message to the wrong list originally - apologies if you see it twice...)
Hi All,
Not sure if this is the right place to begin, but I have to start somewhere...!
I wrote a handy applescript to archive out plain text from our indesign pages, which works pretty well. The script parses the text for links, gets job ticket files for the link and outputs a formatted text archive with some metadata prepended to it.
On one of the magazines it is used on, the job ticket files are in eight or so nested folders on a Windows 2000 server. To search those folders, I use:
=== begin script snippet ===
tell application "Finder" to set FolderList to get the name of every folder of folder jtServerPath
repeat with thisFolder in FolderList
set thisSubFolder to jtServerPath & ":" & thisFolder as string
try
tell application "Finder" to set filelist to (get the name of every file of folder thisSubFolder whose name = (jimmyVar & ".jt")) as list
repeat with thisFileName in filelist
set thisPath to (thisSubFolder as string) & ":" & thisFileName as string
end repeat
end try
end repeat
set jobTicketPath to thisPath
=== end script snippet ===
(where jtServerPath is previously specified - a location on the file server - and jimmyVar is the name of the job ticket file I am looking for).
This snippet has worked well up until now, when the machines have been upgraded to OSX. Previously, the search of the eight (or so) folders (with a couple of thousand files in total) has taken about 6 or 7 seconds. Now, in OSX, the same search takes about 38 seconds. The OS9 machines is a b/w G3, the OSX machines a Quicksilver G4 (256MB ram / 733 MHz processor). Both machines are connected to the same Gig ethernet VLAN (in fact, they are connected into the same switch).
(I also tried the script on another G4 in another vlan, but with 1GB ram - it took even longer - approx. 70s!)
Do these (repeatable) results point to changes in applescript between 9 / X; changes in the Finder between 9 / X (which I suspect), or is it something else entirely (our network, or my dodgy scripting, for example!).
Sorry for the verbosity, but anybody's thoughts would be appreciated...
Cheers,
James
--
Mac Systems Manager
Reed Business Information
London, UK
r============================ DISCLAIMER =============================
This message is intended only for the use of the person(s)
(\"Intended Recipient\") to whom it is addressed. It may contain
information, which is privileged and confidential. Accordingly
any dissemination, distribution, copying or other use of this
message or any of its content by any person other than the Intended
Recipient may constitute a breach of civil or criminal law and is
strictly prohibited. If you are not the Intended Recipient, please
contact the sender as soon as possible.
Reed Business Information Ltd. and its subsidiary companies
Tel: +44 (0)20 8652 3500
=======================================================================
_______________________________________________
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