Applescript for cascading TextSoap windows - not working?

3 views
Skip to first unread message

omn...@gmail.com

unread,
Jun 9, 2026, 4:06:13 AM (yesterday) Jun 9
to TextSoap

When many TextSoap windows are open, it is sometimes useful to cascade those windows - in order to decide what to do with them.


The Applescript below does exactly that:

for TextEdit and for Safari windows, but not for TextSoap windows for some unknown reason.


Also should AScr. call “TextSoap” or as it does now “textsoap9” - which cannot be changed. The script reverts to “textsoap9”.


So that's my problem. 


Any assistance will be much appreciated,

OmarKN


(Below the script as text & image)


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

tell application "textsoap9"

activate

-- Starting position for the first window

set startX to 50

set startY to 50

set offsetIncrement to 30

-- Get all TextSoap windows

set windowCount to count of windows

-- Loop through each window and position it (in reverse order)

repeat with i from 1 to windowCount

set currentWindow to window i

-- Calculate position for this window (reversed)

set xPos to startX + ((windowCount - i) * offsetIncrement)

set yPos to startY + ((windowCount - i) * offsetIncrement)

-- Set the window bounds

set bounds of currentWindow to {xPos, yPos, xPos + 1200, yPos + 800}

end repeat

end tell

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Screenshot 2026-06-09 at 10.02.09.jpg

Reply all
Reply to author
Forward
0 new messages