can't get class of the object
can't get class of the object
- Subject: can't get class of the object
- From: Dmitry Markman <email@hidden>
- Date: Fri, 7 Mar 2008 21:07:14 -0500
Hi
I'm trying to add target dependency to the Xcode's project target
so here is a code
set posix_project_t_path to "/Users/dima/Projects/AppleScript/
AppleScriptTest/AppleScriptTest.xcodeproj"
set project_t_path to POSIX file posix_project_t_path
tell application "Xcode"
open project_t_path
set my_project to project of active project document
tell my_project
set target1 to target "AppleScriptTest"
set target2 to target "AppleScriptTest2"
end tell
set dep1 to target dependencies of target1
try
set dp to get item 1 of dep1
log dp
-- set cls to get class of dp
on error err
log err
end try
end tell
in result window I got
target dependency id "323C85510D82274D006B4B3A" of target id
"DA7A5E150B4C3DE800BB276E" of project "AppleScriptTest" of application
"Xcode"
but I can not get anything from that dp
even
set cls to get class of dp
complains:
(*Xcode got an error: Can’t get target dependency id
"323C85510D82274D006B4B3A" of target id "DA7A5E150B4C3DE800BB276E" of
project "AppleScriptTest".*)
is it my problem?, Xcode bug?
thanks
Dmitry Markman
_______________________________________________
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