Index: src/file-manager/fm-directory-view.c
===================================================================
--- src/file-manager/fm-directory-view.c	(revision 14006)
+++ src/file-manager/fm-directory-view.c	(working copy)
@@ -4863,7 +4863,7 @@ run_script_callback (GtkAction *action, 
 	selected_files = fm_directory_view_get_selection (launch_parameters->directory_view);
 	set_script_environment_variables (launch_parameters->directory_view, selected_files);
 	 
-	if (nautilus_directory_is_local (launch_parameters->directory_view->details->model)) {
+	if (nautilus_file_is_local (selected_files->data)) {
 		parameters = get_file_names_as_parameter_string (selected_files);
 
 		/* FIXME: must append command and parameters here, because nautilus_launch_application_from_command
