Applescript in Quark 2015 Sierra

Discuss AppleScripting for QuarkXPress 2015, 2016 & 2017.

Applescript in Quark 2015 Sierra

Postby jeffersk » 04 Nov 2016, 09:21

I have some applescripts which stopped working in QuarkXPress 2015 when Sierra was installed. Some work ok. Has anyone seen any applescript issues after installing OS X 10.12 ?

For example, the path of an image is returned as <<class null>> in Sierra, but running the same script on the same box in the same document returns the full path.
jeffersk
 
Posts: 4
Joined: 04 Nov 2016, 09:16

Re: Applescript in Quark 2015 Sierra

Postby jeffersk » 07 Nov 2016, 09:15

The problem with the Applescript seems to be that a picture box's image's file path is returned as null by the script. Unless the image is "missing," then the script works as expected and returns a full file path. So it seems to be something about the way Sierra reports the image path. It happens on mounted network drives and local files the same way.

Has anyone else experienced this?

Does anyone know if this issue exists in QuarkXPress 2016 in Sierra?

Current versions:
QuarkXPress version 11.2.0.2 (27672)
macOS Sierra Version 10.12.1
jeffersk
 
Posts: 4
Joined: 04 Nov 2016, 09:16

Re: Applescript in Quark 2015 Sierra

Postby jeffersk » 11 Nov 2016, 14:22

Can anyone with Quark 2015 or 2016 and Sierra try to paste this applescript into a new Script Editor window and run it and let me know if it comes back with the image path or null? It requires a single picture box with an image to be selected and it should return the path.


Code: Select all
-- select a single picture box with image
tell application "QuarkXPress"
   tell document 1
      tell current page
         return file path of image 1 of current box
      end tell
   end tell
end tell
jeffersk
 
Posts: 4
Joined: 04 Nov 2016, 09:16

Re: Applescript in Quark 2015 Sierra

Postby jeffersk » 12 Nov 2016, 16:44

I found a bit more on this issue. It occurs in Quark 2016 as well as 2015 running on macOS 10.12. Since it's not 2015 specific, maybe this post would be more appropriate for the Applescript section.

Can a moderator move this post? And is it possible to request a fix for this bug which happens in Sierra?
jeffersk
 
Posts: 4
Joined: 04 Nov 2016, 09:16

Re: Applescript in Quark 2015 Sierra

Postby hnltaps » 27 Jun 2017, 13:21

I, too have duplicated this problem. the only hackish solution I can provide is to renamed linked images (or better yet their parent directory) temporarily to change the image status to missing (and then restoring the file/folder name appropriately afterwards). Of course, this only works if you know the location of the linked images...
hnltaps
 
Posts: 1
Joined: 02 May 2013, 08:19


Return to QuarkXPress 20xx: Scripting

Who is online

Users browsing this forum: No registered users and 1 guest

cron