• 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
Opening File Dialog error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Opening File Dialog error


  • Subject: Opening File Dialog error
  • From: email@hidden
  • Date: Tue, 03 May 2005 11:29:00 -0500
  • Priority: normal

I've run into a problem where when a script is opening a QuarkXPress
6.5 document, sometimes the user on another machine has it open (the
file resides on a server) and I get this dialog:

File is locked [-54]

Is there a way to get around this dialog without using GUI scripting?
I can put a 'timeout' block around the open statement like so:

	try
		with timeout of 4 seconds
			open file filePath
		end timeout
  -- Use gui to look for error window and try to click 'ok' button...
	on error

	end try

And that lets the script continue, but I'd like to avoid using gui
scripting if possible.

Thanks.

Jay

 _______________________________________________
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

  • Follow-Ups:
    • Re: Opening File Dialog error
      • From: "Gary (Lists)" <email@hidden>
  • Prev by Date: Re: Where is 'Code Sense for AppleScript' ?
  • Next by Date: Tiger: "path to me" now returns script path!
  • Previous by thread: Re: Applescript-users Digest, Vol 2, Issue 276
  • Next by thread: Re: Opening File Dialog error
  • Index(es):
    • Date
    • Thread