• 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
target duplication with AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

target duplication with AppleScript


  • Subject: target duplication with AppleScript
  • From: Dmitry Markman <email@hidden>
  • Date: Sat, 23 May 2009 21:05:27 -0400

Hi
I have a problem with target duplication via Applescript 
here is what I do

tell application "Xcode"
set my_project to project of active project document
set ts to targets of my_project
set my_target to item 1 of ts
tell my_project
duplicate my_target
-- duplicate target my_target
end tell
end tell

duplicate my_target doesn't work with an error "Xcode got an error: AppleEvent handler failed."
duplicate target my_target doesn't work with an error "Xcode got an error: Can’t make target id \"DA3235600FC725BF00859B5D\" of project \"TestProject\" into type integer."

thanks


Dmitry Markman


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: target duplication with AppleScript
      • From: Philip Aker <email@hidden>
  • Prev by Date: how access "Custom BUild Tool" Target properties via AppleScript
  • Next by Date: Re: problem with LEAKS and the stack trace
  • Previous by thread: how access "Custom BUild Tool" Target properties via AppleScript
  • Next by thread: Re: target duplication with AppleScript
  • Index(es):
    • Date
    • Thread