• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Rép: I broke AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Rép: I broke AppleScript


  • Subject: Rép: I broke AppleScript
  • From: Yvan KOENIG <email@hidden>
  • Date: Wed, 25 Jan 2017 19:48:24 +0100

Le 25 janv. 2017 à 19:30, Jacopille, David <email@hidden> a écrit :

Has anyone seen this problem?  Basic stuff like, set item x…, stopped working at compile time.
 
set my_list to {1, 2, 3, 4}
set item 4 of my_list to 5 -- WORKS
tell application id "com.adobe.indesign"
                set item 4 of my_list to 10 -- FAILS
end tell
 
AppleScript Compile Error (on line 4): Can’t get 4 of my_list. Access not allowed.
 
OS X 10.11.6
InDesign 11.4.1.102
All OSAX deleted and machine rebooted
 
For reference, the same code works great on a machine with 10.9.5 and InDesign 11.3.0.34
 
I’d love to downgrade InDesign to a specific point version but I see no way to do that under Adobe’s new subscription model.
 
Any ideas?
 
Thanks,
Dave



If you really need to put the instruction in a tell application Adobe block, try:

set my_list to {1, 2, 3, 4}
set item 4 of my_list to 5 -- WORKS
tell application id "com.adobe.indesign"
                tell me to set item 4 of my_list to 10 -- FAILS
end tell

Yvan KOENIG running Sierra 10.12.3 in French (VALLAURIS, France) mercredi 25 janvier 2017 19:35:24



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Re: I broke AppleScript (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Re: I broke AppleScript
  • Next by Date: Re: I broke AppleScript
  • Previous by thread: Re: I broke AppleScript
  • Next by thread: Re: I broke AppleScript
  • Index(es):
    • Date
    • Thread