Extension to Unlock All Items

Discuss QuarkXTensions® and third-party XTensions® software
britsmith
Posts: 337
Joined: 03 Jul 2006, 06:55
Location: Northern England

Extension to Unlock All Items

Post by britsmith » 01 Mar 2011, 04:01

Jean-Marie Schwartz wrote:
OK so there you go:
tell application "QuarkXPress"
activate
tell document 1
try
set locked of (every generic box whose locked is true) to false
end try
end tell
end tell

beep 2Let me know if it does the trick. (Note: depending on the complexity of your doc, it might take a while. It's unpredictable "from here". After the script is done it beeps twice so you know when it's finished.)

Thanks Jean-Marie, it looks so easy when you know how! I will try it and let you know.

britsmith
Posts: 337
Joined: 03 Jul 2006, 06:55
Location: Northern England

Extension to Unlock All Items

Post by britsmith » 02 Mar 2011, 04:20

Hi guys, I've tested your suggested methods ...

Jean-Marie, the script works only to unlock picture box Positions, it doesn't unlock the contents. Is there a way to make it do both?
Matthias, the F6 command similarly only works on picture box Position, not the content. Is there another command to unlock content? Also if a box is not locked, F6 will lock it, which is no good.
Thanks for you help so far.

Jean-Marie Schwartz
Posts: 1173
Joined: 23 Nov 2004, 04:30

Extension to Unlock All Items

Post by Jean-Marie Schwartz » 02 Mar 2011, 05:09

Sorry! You should add those two lines after the similar one in the code you got yesterday.

set content lock of (every image whose content lock is true) to false
set content lock of (every story whose content lock is true) to false
No time to test that right now. Please report any trouble. HTH.

britsmith
Posts: 337
Joined: 03 Jul 2006, 06:55
Location: Northern England

Extension to Unlock All Items

Post by britsmith » 02 Mar 2011, 05:40

Thanks Jean-Marie, I've tested it, and Applescript accepts the syntax OK (with your corrected spelling of 'iamge'), but it still doesn't work. Text areas highlight momentarily, but remain locked, as do pictures. It would be great if you could crack this for me and my colleagues.

Jean-Marie Schwartz
Posts: 1173
Joined: 23 Nov 2004, 04:30

Extension to Unlock All Items

Post by Jean-Marie Schwartz » 02 Mar 2011, 20:45

Sorry! I've tried it too and no way. That's very odd cause if I run "get content lock of story 1" it returns true. But I can't seem to set it to false as it's supposed to accept. I'll try to play with it and to get it work but it might take me a while. Unless Michel is around and knows the trick to get it run! Stay tuned!

britsmith
Posts: 337
Joined: 03 Jul 2006, 06:55
Location: Northern England

Extension to Unlock All Items

Post by britsmith » 02 Mar 2011, 21:18

Cheers, it's at times like this I wish I could do Applescript. You guys are very clever! [*-)]

User avatar
Matthias Guenther (Quark)
Quarkian
Quarkian
Posts: 2482
Joined: 04 Jun 2004, 15:06
Location: http://bit.ly/QuarkHamburg
Contact:

Extension to Unlock All Items

Post by Matthias Guenther (Quark) » 03 Mar 2011, 02:01

Hi britsmith,
to unlock content you need to use the menu item, I don't think there's a shortcut key for it.
Of course you could add one yourself, using System Preferences.
Regards
Matthias

britsmith
Posts: 337
Joined: 03 Jul 2006, 06:55
Location: Northern England

Extension to Unlock All Items

Post by britsmith » 03 Mar 2011, 02:21

Thanks Matthias, that's a good idea, and I will create a shortcut. However, if I then Select All, and press my shortcut, will that then lock all unlocked content? What I need is fully unlocked positions and content throughout my documents. If Jean-Marie can get his script to work that will be the ideal solution.

Jean-Marie Schwartz
Posts: 1173
Joined: 23 Nov 2004, 04:30

Extension to Unlock All Items

Post by Jean-Marie Schwartz » 03 Mar 2011, 03:47

Unfortunately, I can't find the way! It's suposed to be as simple as what I've posted but it doesn't work!
Matthias, if you're reading me, could you ask the AS team wether it's normal behaviour or not? It looks like a bug to me but I'm not an Ace Thanks in advance!

britsmith
Posts: 337
Joined: 03 Jul 2006, 06:55
Location: Northern England

Extension to Unlock All Items

Post by britsmith » 03 Mar 2011, 04:14

You're an Ace as far as I'm concerned, Jean-Marie! [H]

Post Reply

Return to “QuarkXPress 8, 9 & 10: XTensions modules”