Recent Posts

Pages: [1] 2 3 4 5 ... 10
1
General Discussion / This is the best!
« Last post by bergamit143 on July 30, 2018, 10:08:00 AM »
Bergamot is regarded as a unique and interesting scent, which has citrus base notes along with a spiciness that has made it popular among the perfume producers.

This essential oil blends well with a variety of different base notes in perfumes and is most commonly combined with rosemary, jasmine and sandalwood. The oil along with the fruit has strong scents that are easy to recognize.

Uses associated with Bergamot Essential Oil are extensive and range from odorous and medicinal onto cosmetic. The varieties of forms are inclusive of candle making, oils, sprays, gels, soaps and lotions. Bergamot is also good for alleviating anxiety and stress in association to the actual qualities of this oil along with its aroma.
2
General Discussion / Re: Unable to connect to new Quark forum
« Last post by Hofstetter on January 12, 2018, 09:29:28 AM »
Man, I loved Banana Splits and Friends show when I was a kid. Now that's great kids television, unlike the crap that's on TV nowadays.
3
Adobe Acrobat scripting / Re: Applescript Mouse Click Help?
« Last post by Jean-Marie Schwartz on August 17, 2017, 02:36:52 AM »
Hi!

Acrobat is not very Applescript-friendly.
One way is to use UI Browser.app (from http://pfiddlesoft.com/uibrowser/) and try to isolate the button you wish in one way or another via UI scripting.
HTH.
4
Adobe Acrobat scripting / Applescript Mouse Click Help?
« Last post by Star123 on August 06, 2017, 06:15:09 AM »
Hi Guys,

I am using Mac OS X Yosemite, Apple Script Editor – Version 2.7 and Adobe Acrobat XI.

I would like to go the respective Tag for the Current Selection in the Tag Panel.

So Far What I doing is,
1. Selecting Text
2. Clicking Option Button in Tag Panel and
3. Clicking “Find Tag From Selection” from the list.

As of Now I am using the below script. But it take more time to click.

Code: [Select]
tell application "Adobe Acrobat Pro"
   activate
   set x to 50
   set y to 180
   
   do shell script "
/usr/bin/python <<END
import sys
import time
from Quartz.CoreGraphics import *
def mouseEvent(type, posx, posy):
theEvent = CGEventCreateMouseEvent(None, type, (posx,posy), kCGMouseButtonLeft)
CGEventPost(kCGHIDEventTap, theEvent)
def mousemove(posx,posy):
mouseEvent(kCGEventMouseMoved, posx,posy);
def mouseclick(posx,posy):
mouseEvent(kCGEventLeftMouseDown, posx,posy);
mouseEvent(kCGEventLeftMouseUp, posx,posy);
ourEvent = CGEventCreate(None);
currentpos=CGEventGetLocation(ourEvent); # Save current mouse position
mouseclick(" & x & "," & y & ");
mousemove(int(currentpos.x),int(currentpos.y)); # Restore mouse position
END"


set x to 50
set y to 310

do shell script "
/usr/bin/python <<END
import sys
import time
from Quartz.CoreGraphics import *
def mouseEvent(type, posx, posy):
theEvent = CGEventCreateMouseEvent(None, type, (posx,posy), kCGMouseButtonLeft)
CGEventPost(kCGHIDEventTap, theEvent)
def mousemove(posx,posy):
mouseEvent(kCGEventMouseMoved, posx,posy);
def mouseclick(posx,posy):
mouseEvent(kCGEventLeftMouseDown, posx,posy);
mouseEvent(kCGEventLeftMouseUp, posx,posy);
ourEvent = CGEventCreate(None);
currentpos=CGEventGetLocation(ourEvent); # Save current mouse position
mouseclick(" & x & "," & y & ");
mousemove(int(currentpos.x),int(currentpos.y)); # Restore mouse position
END"

end tell

By Applescript or Javascript, Can it possible to Click “Find Tag From Selection” on the Tag Panel?


Any Help would be appreciated.


Thanks,
Mathew
5
Hi there! I don't use ID hence I don't script ID, but can't address either spread or page? If so, you could target say the last page of spread 2, or page 2 of spread 17. Does this make sense? Another possible way (to me) would be to add the width of the page to the measures so that the new object to be created falls on the right hand page. Are you with me? Then you'd need to test the page number and detect wether you're on a odd or even page. HTH.
6
Adobe InDesign scripting / Text Frames for Page 2 to End Up on Page 1
« Last post by mbornbach on June 12, 2017, 05:28:44 PM »
I have a script that measures text frames and places those measurements as text inside the text frame. The only problem I'm having is that InDesign wants to put the measurements for page 2 of the spread on page 1. What do I need to change to convince InDesign to put the measurements for page 2 on page 2?

Code: [Select]

--------------------------------------------------------------------------------------------------------------
--CREATING SEPARATE NEW LAYER FOR THE MEASURMENTS AND TEXT BOXES IF IT DOESN'T EXIST
--------------------------------------------------------------------------------------------------------------

open afile


tell document 1 -->Beginning of tell document 1 block
try
set measuringLayer to make layer with properties {name:"Measure"}

--Telling script to use existing measure layer if it already exists
on error
set measuringLayer to layer "Measure"
end try



--------------------------------------------------------------------------------------------------------------
--GETTING MEASUREMENTS AND ADDING THEM AS TEXT TO THE MEASURED TEXT FRAME
--------------------------------------------------------------------------------------------------------------

--Displaying a message to the user if there are no text frames on the measure layer
if (count of every text frame of measuringLayer) is 0 then -->Beginning of if statement
set boxesDontExist to true -->Using this to display a dialog further down in the script, after the repeat loop ends.


--Getting the measurements of every text frame on the measure layer
else

set my_pages to every page
repeat with a_page in my_pages
set page_name to get the name of a_page


set boxesExist to true -->Using this to display a dialog further down in the script, after the repeat loop ends.
set measuringTextFrames to (every text frame of page page_name whose item layer is measuringLayer)
repeat with measuringTextFrame in measuringTextFrames -->Beginning of second repeat loop


--Geometric bounds are {top side, left side, bottom side, right side}, also referred to as {y1, x1, y2, x2}
set y2 to item 3 of geometric bounds of measuringTextFrame -->y2 is the bottom side of the frame
set y1 to item 1 of geometric bounds of measuringTextFrame -->y1 is the top side of the frame
set x1 to item 2 of geometric bounds of measuringTextFrame -->x1 is the left side of the frame
set x2 to item 4 of geometric bounds of measuringTextFrame -->x2 is the right side of the frame


--Doing some math with those measurements to figure out the square inches of each frame
set frameHeight to y2 - y1 -->bottom of frame - top of frame = height of the frame
set frameWidth to x2 - x1 -->right side of frame - left side of frame = width of the frame
set frameSquareInchesLong to frameHeight * frameWidth -->multiplying height time width to get square inches
set frameSquareInches to my roundThis(frameSquareInchesLong, 2) -->making the number round to only 2 decimal points instead of a gazillion
set inchMarks to {"''"} -->Adding the inch marks in between quotes
set measurementText to frameSquareInches & inchMarks as string -->Final result followed by the inch marks (example: 3.08")


--Creating the text frames that will hold the measurements
tell page page_name to set displayTextFrame to make text frame with properties {layer:measuringLayer, geometric bounds:{(y1 + "0.05"), (x1 + "0.075"), y2, x2}, stroke color:"None", stroke weight:0}


--Inserting the square inches figured into each frame as text
tell displayTextFrame

--Adding the drop shadow to the text
apply object style using dropShadowStyle

--Adding the calculated result for square inches in each text frame
set contents of insertion point -1 to measurementText

end tell

end repeat -->End of second repeat loop





end repeat --> End of repeat with page loop
end if -->End of if statement
7
Quark XPress support / Re: lock picture box to text in quarkxpress 8.0
« Last post by VernonP on June 12, 2017, 06:04:25 AM »
lock picture box to text in quarkxpress 8.0

How do you do this?
8
Quark XPress scripting / Re: Removing Paragraph Breaks
« Last post by Jean-Marie Schwartz on March 27, 2017, 03:40:31 AM »
Hi! Have you tried to concatenate doc files via a shell script? (Or am I missing sth?)
This might be helpful too: https://forums.macrumors.com/threads/combine-word-documents-through-script.1907370/ (and maybe this one: https://groups.google.com/forum/#!topic/microsoft.public.mac.office.word/tviRk1gUL80 ?)
9
Quark XPress scripting / Removing Paragraph Breaks
« Last post by mbornbach on March 23, 2017, 02:04:46 PM »
I have this script that combines word files into one file. I then drop that Word file onto Quark and drag it off to the side.
The problem I'm having is that the imported text cuts off after the first paragraph and the rest of the text is overflowing.
I'm trying to figure out how to replace the paragraph break in the code with something that won't cut off in Quark; either by changing something in this script in Word or by making a second script that changes it in Quark.

Code: [Select]
 on open of droppedfiles
with timeout of 1500 seconds
tell application "Microsoft Word"
set new_document to make new document
repeat with afile in droppedfiles
set file_path to afile as string
set filename to name of afile
set paste_range to text object of new_document
set collapsed_range to collapse range paste_range direction collapse end
insert file file name file_path at collapsed_range
end repeat
end tell
end timeout
end open
10
Adobe Photoshop scripting / Re: Script works except for Photoshop CS5
« Last post by Jean-Marie Schwartz on March 02, 2017, 05:25:44 AM »
Hi!

Most of the time if a script crashes the app other people won't necessary test the code  :)
Then it would be helpful to be a bit more accurate: at what stage does it crash? What script editor do you use? You'd need to add some log reports along the code as to see what happens and when does the crash occurs.
Does this make sense?
Pages: [1] 2 3 4 5 ... 10