• 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
in use and server questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

in use and server questions


  • Subject: in use and server questions
  • From: email@hidden
  • Date: Mon, 9 Apr 2001 10:55:09 +0100

I have run in to two problems with a script I have written and I'm looking
for some solutions!

1) My script copies files from location A to location B if the files match
a certain criteria.

However, even though the move command is within a try...on error...end
try, I have found that if the file is busy, the Finder (OS9.1) displays an
error "The file xxxx is busy. Click continue to copy the other items" and
waits for human intervention. Which is a pain for a script that's meant to
run unattended.

Question 1: How do I check if a file is busy/in use?


2) Location A is a server volume. At the moment, my script contains a list
of the volumes that it has to run on and which servers they reside on.
However, every time a new volume is added to the routine, I have to edit
the script. I do it this way because I can't find a way in AppleScript to
determine which server the volume resides on. If I try

tell application "Finder"
info for disk "Sunday News"
end tell

I get an error message "Finder got an error: Network file permissions
error" even though I'm the administrator

Question 2: Is there any way of determining which server a volume resides
on?


Thanks in advance


Steve


  • Prev by Date: errors checking class of selected item
  • Next by Date: Re: Excel scripting question
  • Previous by thread: errors checking class of selected item
  • Next by thread: Shut down
  • Index(es):
    • Date
    • Thread