In a previous post, Perforce and Xcode4, I created applescripts to work with Xcode4 and Perforce.
I updated the AppleScripts to work with Xcode5 only and added a couple of new scripts.
One, called p4_file_renamed.scpt, is used to update the renamed file Perforce when you are using Xcodes rename functionality, either directly or through the refactor functionality.
The other two scripts get the filename of the currently selected file or the full path of the file which is useful for when you want to find a file by path in P4V.
You can download the file here: xcode5_p4_applescripts