RE: User Scripts problem
RE: User Scripts problem
- Subject: RE: User Scripts problem
- From: "Mike Garcia" <email@hidden>
- Date: Mon, 18 Aug 2008 15:02:42 -0600
- Thread-topic: User Scripts problem
Actually, I'm talking about the Apple Script menu not the run scripts
phase. I put in a user script into the Apple Script menu that is a
"checkout current file" script. After doing the checkout, XCode doesn't
know the file is now writable without a manual switchout/switchin.
You can actually see the same behavior if you "Edit User Scripts..." in
the Apple Script menu, then click on the "+" button and select "New
Shell Script". Enter "chmod +w %%%{PBXFilePath}%%%" on the second line.
Then open a read only file and run the new script. XCode thinks the
file is still read only after running the script. Switchout, then
switch back into XCode and XCode updates the file as read/write.
-Mike
-----Original Message-----
From: xcode-users-bounces+mgarcia=email@hidden
[mailto:xcode-users-bounces+mgarcia=email@hidden] On Behalf
Of Dan Korn
Sent: Monday, August 18, 2008 2:51 PM
To: Xcode Users
Subject: Re: User Scripts problem
I have several Run Script Phases in my projects which merely execute
external shell scripts. I initially ran into the same problem, where
the script file doesn't have execute permissions by default when
checked out from my source control system. My workaround is to add a
line in the Run Script step calling chmod +x on the script file before
executing it.
Dan
On Aug 18, 2008, at 11:08 AM, Mike Garcia wrote:
> I have a user script that uses a command line script to mark a file as
> editable/checked out in my version control system. That command
> succeeds but XCode doesn't detect that the file is now writable. If I
> switch out and switch back into XCode, XCode will detect the writable
> file and allow me to edit it. Any idea how I can get Xcode to update
> the file's permissions? I thought I could use an Applescript command
> but I can't because I'm executing a sh command.
_______________________________________________
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
_______________________________________________
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