• 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: FMPro/Applescript error -10011
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FMPro/Applescript error -10011


  • Subject: Re: FMPro/Applescript error -10011
  • From: email@hidden
  • Date: Mon, 30 Apr 2012 14:11:22 -0700

On Apr 30, 2012, at 3:24 AM, John Mitchell wrote:

"Error -1011: Data is being accessed by another user, script or transaction"
I have an applescript being executed from FMPro 12 and its bombing here 

John,

I'm no expert, but it sounds like either you or someone on your network may be accessing this record when you ran this script.  If you issue a 'Go To Field' or 'Commit Records' script step first, that might solve your problem. However, that may not work if it's another person on the network.

If that doesn't work, you may want to try wrapping your code using "with transaction".  It prevents other Apple Events from talking to FMPro while a transaction is running.

tell application "FileMaker Pro Advanced"
with transaction
try
tell record ID currentRec of table 1 of document odbActivities
set cell "Activity_mailbox_loc" to catMailPath
end tell
on error errMsg number errMsg
-- failed
display alert "Could not update Category Mail folder name" message ¬
"Check folder <" & catMailPath & ¬
">, redo operation (folders may exist now) or reset manually" as warning buttons {"Cancel"} default button 1
return {false}
end try
end transaction
end tell

As a side note, if this is being run from within FMPro, you don't need to use tell application "FileMaker Pro Advanced".  That's only necessary when being called from outside FMPro.

Marc
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >FMPro/Applescript error -10011 (From: John Mitchell <email@hidden>)

  • Prev by Date: Re: FMPro/Applescript error -10011
  • Previous by thread: FMPro/Applescript error -10011
  • Next by thread: Re: FMPro/Applescript error -10011
  • Index(es):
    • Date
    • Thread