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 » 03 Mar 2011, 04:14

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

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, 04:46

Hi britsmith,
britsmith wrote:if I then Select All, and press my shortcut, will that then lock all unlocked content?

No, unfortunately not, as when you select all you basically use an object tool command and content commands are then not available.
Jean-Marie wrote:Matthias, if you're reading me, could you ask the AS team wether it's normal behaviour or not?

Will do.
Regards
Matthias

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) » 08 Mar 2011, 20:09

Hi britsmith,
can you try this please:
tell application "QuarkXPress"
activate
tell document 1
try
set locked of (every generic box whose locked is true) to false
set format lock of (every image whose format lock is true) to false
set content lock of (every image whose content lock is true) to false
set format lock of (every story whose format lock is true) to false
set content lock of (every story whose content lock is true) to false
end try
end tell
end tell
Does this work?
Thanks
Matthias

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

Extension to Unlock All Items

Post by Jean-Marie Schwartz » 08 Mar 2011, 20:50

Hi Matthias! Yessss! It does work like that! Didn't know the format lock would be involved in this. Thanks for the input!

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

Extension to Unlock All Items

Post by britsmith » 08 Mar 2011, 21:32

Thanks chaps, it works for me too! And the answer appears to be quite simple after all. I think this will help me with a whole range of jobs, so I'm very grateful to you both.
Can you point me to the best place to start learning Applescript for Quark? I'll give it a try in my spare moments, but whether I'll get very far remains to be seen!
Thanks again.

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

Extension to Unlock All Items

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

britsmith wrote:Can you point me to the best place to start learning Applescript for Quark?
I myself started by playing with existing codes found here and there, trying to understand how it works. Also some basic AppleScript readings like Apple's Web page: here. Also some interesting articles in X-Ray Mag.
Some scripts here and of course in the Script folder shipping with QuarkXPress.
And last but not least, Scripting_Ace's forum: Publi-Script > The Classroom.

Post Reply

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