Quick Search:

jump to detailed chart Line History

line history graph

View Mode

Logical Physical

Show Arbitrary Diff

From to

Supports revisions and tags.

Watches and RSS

History

trunk 622 385

latest revision download trunk

622 deleted | Diffs: previous, other | Lines: 0 ( +0, -19 )

Created: 2005-04-21 02:41:17 -0500 (3 years 6 months ago) | Author: duff | Changeset: 622

Moved all bundles. I'm not sure what happens if you do “svn up” and you have modified stuff inside one of the bundles.

451 annotated / raw | Diffs: previous, other | Lines: 19 ( +1, -1 )

Created: 2005-03-08 17:35:25 -0600 (3 years 8 months ago) | Author: duff | Changeset: 451

Moved to: trunk/Bundles/ActionScript.tmbundle/Tools/get_doc_path.sh 622

Uses System Events instead of Finder to show the file chooser. That way, Finder isn't brought to front.

Properties

 svn:executable = *

387 annotated / raw | Diffs: previous, other | Lines: 19 ( +4, -4 )

Created: 2005-02-27 18:41:13 -0600 (3 years 8 months ago) | Author: duff | Changeset: 387

• More quotes around $DOC_PATH...

Properties

 svn:executable = *

386 annotated / raw | Diffs: previous, other | Lines: 19 ( +7, -7 )

Created: 2005-02-27 18:36:09 -0600 (3 years 8 months ago) | Author: duff | Changeset: 386

• Added quotes around the path

Properties

 svn:executable = *

385 new annotated / raw | Lines: 19 ( +19, -0 )

Created: 2005-02-27 18:14:05 -0600 (3 years 8 months ago) | Author: duff | Changeset: 385

This is one idea for how to solve the settings problem.

Basically call this script, it will read the path from the actionscript defaults, if no path exists (or the stored path is not a folder) it will prompt the user with a folder dialog and store the choice (if it's a valid folder) for future use.

So basically in a shell script it should be possible to do:

DOC_PATH=`"$TM_BUNDLE_PATH/get_doc_path.sh"`
if [[ -d $DOC_PATH ]] then
  ...
fi

And the user will only be prompted for the folder the first time he runs the command, or if the path later goes invalid.

I didn't actually make any of the commands in the bundle use this script, since I don't have the flash documentation installed and wasn't sure which commands actually needed the path.

There is one minor problem with the script; the “defaults” command I use to read the setting returns the path with >7 bit characters as escape sequences. I have no idea how to make it return something more useful (interestingly when writing defaults values, it expects utf-8). If I don't find a solution for this, we can always just grep the output through perl to turn escape sequences into characters -- but it sucks!

Properties

 svn:executable = *

Crucible: Open Source License registered to Atlassian.
Atlassian FishEye, Subversion, CVS & Perforce analysis. (Version:1.5.5 Build:build-dev18790 2008-08-11 ) - Administration - Page generated 2008-11-19 16:59 -0600