AS scripts - AS sees invisible files. it shouldn't right?

Discuss Moho bugs (or suspected bugs) with other users. To report bugs to Smith Micro, please visit support.smithmicro.com

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

AS scripts - AS sees invisible files. it shouldn't right?

Post by heyvern »

Files in the AS scripts folder that are invisible are still read by AS as if they are there.

I think if a file is invisible it shouldn't be seen by AS as actual tool or script file.

This recently caused a bit of a nightmare for me when I was editing files over a network and my mac created some invisible files with the .lua extension.

AS read these files but choked on them because they weren't actual .lua files but resource forks from the mac side.

-vern
Genete
Posts: 3483
Joined: Tue Oct 17, 2006 3:27 pm
Location: España / Spain

Post by Genete »

In linux version, AS can see hidden files because he have created it!!
For instance,
In my personal home directory (/home/carlos)
there is a hidden file called
.Anime Studio Pro.user.settings
(begining with dot)
and this is its content:

Code: Select all

"ToolWnd_location"	"683 25"
"TimelineWnd_location"	"1 582"
"TimelineWnd_shape"	"672 132"
"StyleWnd_location"	"794 25"
"LayerWnd_location"	"794 458"
"LayerWnd_shape"	"220 256"
"MohoWnd_shape"	"673 528"
"ActionWnd_location"	"67 75"
"ActionWnd_shape"	"183 361"
"MohoWnd_location"	"1 25"
"UseLargeFonts"	"FALSE"
"channel_on_0"	"TRUE"
"channel_on_1"	"TRUE"
"channel_on_2"	"TRUE"
"channel_on_3"	"TRUE"
"channel_on_4"	"TRUE"
"channel_on_5"	"TRUE"
"channel_on_6"	"TRUE"
"channel_on_7"	"TRUE"
"channel_on_8"	"TRUE"
"channel_on_9"	"TRUE"
"channel_on_10"	"TRUE"
"channel_on_11"	"TRUE"
"channel_on_12"	"TRUE"
"channel_on_13"	"TRUE"
"channel_on_14"	"TRUE"
"channel_on_15"	"TRUE"
"channel_on_16"	"TRUE"
"channel_on_17"	"TRUE"
"channel_on_18"	"TRUE"
"channel_on_19"	"TRUE"
"channel_on_20"	"TRUE"
"channel_on_21"	"TRUE"
"channel_on_22"	"TRUE"
"channel_on_23"	"TRUE"
"channel_on_24"	"TRUE"
"channel_on_25"	"TRUE"
"channel_on_26"	"TRUE"
"channel_on_27"	"TRUE"
"channel_on_28"	"TRUE"
"channel_on_29"	"TRUE"
"channel_on_30"	"TRUE"
"channel_on_31"	"TRUE"
"channel_on_32"	"TRUE"
"channel_on_33"	"TRUE"
"channel_on_34"	"TRUE"
"channel_on_35"	"TRUE"
"channel_on_36"	"TRUE"
"channel_on_37"	"TRUE"
"channel_on_38"	"TRUE"
"channel_on_39"	"TRUE"
"channel_on_40"	"TRUE"
"channel_on_41"	"TRUE"
"channel_on_42"	"TRUE"
"channel_on_43"	"TRUE"
"channel_on_44"	"TRUE"
"channel_on_45"	"TRUE"
"channel_on_46"	"TRUE"
"channel_on_47"	"TRUE"
"channel_on_48"	"TRUE"
"channel_on_49"	"TRUE"
"channel_on_50"	"TRUE"
"channel_on_51"	"TRUE"
"channel_on_52"	"TRUE"
"channel_on_53"	"TRUE"
"channel_on_54"	"TRUE"
"channel_on_55"	"TRUE"
"channel_on_56"	"TRUE"
"channel_on_57"	"TRUE"
"channel_on_58"	"TRUE"
"channel_on_59"	"TRUE"
"channel_on_60"	"TRUE"
"channel_on_61"	"TRUE"
"channel_on_62"	"TRUE"
"channel_on_63"	"TRUE"
"LM_Credits.font"	""
"FA_SharedUtils.lassoMode"	"TRUE"
"FA_SharedUtils.autoClose"	"FALSE"
"FA_SharedUtils.autoOutline"	"TRUE"
"FA_SharedUtils.autoFill"	"FALSE"
"FA_SharedUtils.autoWeld"	"FALSE"
"FA_SharedUtils.sharpCorners"	"FALSE"
"FA_SharedUtils.floodMaxStep"	"20"
"FA_SharedUtils.centerGravity"	"TRUE"
"FA_CreateShape.autoFill"	"FALSE"
"FA_Freehand.pixelTolerance"	"10"
"FA_Freehand.angleTolerance"	"10"
"FA_Freehand.widthMode"	"1"
"FA_Freehand.minWidth"	"1.000000"
"FA_Freehand.maxWidth"	"8.000000"
"FA_Freehand.taperStart"	"FALSE"
"FA_Freehand.taperEnd"	"FALSE"
"FA_Magnet.magnetRadius"	"0.400000"
"FA_Polygon.cornerPoints"	"8"
"FA_Polygon.starFactor"	"1.375000"
"FA_Polygon.starMode"	"TRUE"
"FA_ReplaceLine.widthMode"	"0"
"FA_ReplaceLine.minWidth"	"1.000000"
"FA_ReplaceLine.maxWidth"	"8.000000"
"FA_ReplaceLine.keepEnds"	"FALSE"
"FA_ReplaceLine.widthOnly"	"FALSE"
"FA_TranslatePoints.dragClosest"	"FALSE"
"FA_MPlayer.MP_Invoke"	"mplayer -slave -ontop -loop 0 -fixed-vo -geometry 50%:5%"
"FA_MPlayer.MP_ExeFormat"	"$cmd <$fifo &"
"FA_MPlayer.MP_Fifo"	"/dev/moho_fifo"
"FA_MPlayer.MP_ExeMode"	"FALSE"
"LM_Rectangle.autoFill"	"TRUE"
"LM_Rectangle.autoOutline"	"TRUE"
"LM_Freehand.pixelTolerance"	"10"
"LM_Freehand.angleTolerance"	"10"
"LM_Freehand.autoClose"	"FALSE"
"LM_Freehand.autoFill"	"FALSE"
"LM_Freehand.autoOutline"	"TRUE"
"LM_Freehand.widthMode"	"1"
"LM_Freehand.minWidth"	"1.000000"
"LM_Freehand.maxWidth"	"8.000000"
"LM_Freehand.taperStart"	"FALSE"
"LM_Freehand.taperEnd"	"FALSE"
"LM_Magnet.magnetRadius"	"0.200000"
"LM_AddPoint.sharpCorners"	"FALSE"
"LM_TranslatePoints.autoWeld"	"TRUE"
"LM_TranslatePoints.autoFill"	"FALSE"
"LM_SelectPoints.lassoMode"	"TRUE"
"MohoColBack"	"240 240 240 255"
"MohoColObj"	"51 102 102 255"
"MohoColSel"	"255 0 0 255"
"MohoColInac"	"203 152 152 255"
"MohoColFill"	"255 255 255 255"
"MohoColLine"	"0 0 0 255"
"QualityFlags"	"22"
"PreferredFormat"	"5"
"AutoLockKeys"	"TRUE"
"ScaleCompensation"	"TRUE"
"GapFilling"	"FALSE"
"ConstructionCurves"	"FALSE"
"AutoNaming"	"TRUE"
"ZoomBox"	"FALSE"
"MarkZero"	"TRUE"
"DisableAudioFeedback"	"FALSE"
"SMPTE"	"FALSE"
"DegreesInTimeline"	"FALSE"
"DisableCursors"	"FALSE"
"InsertTextFont"	"24"
"InsertTextText"	"SIDE"
"InsertTextOneFill"	"TRUE"
"InsertText_CenterH"	"TRUE"
"DefaultInterp"	"1"
"ProjWidth"	"320"
"ProjHeight"	"240"
"ProjFPS"	"24.000000"
"ProjStart"	"1"
"ProjEnd"	"72"
"ProjBackCol"	"234 234 234 255"
"ProjDofEnabled"	"FALSE"
"ProjDofDistance"	"2.000000"
"ProjDofRange"	"1.000000"
"ProjDofBlur"	"0.050000"
"ProjEnable3D"	"TRUE"
"ProjDepthSort"	"FALSE"
"ProjDistanceSort"	"FALSE"
"ProjNoise"	"0"
"FirstRun"	"1177275913"
"WelcomeScreen"	"FALSE"
"BackCol"	"216 216 216 255"
"Light1"	"241 241 241 255"
"Light2"	"255 255 255 255"
"Dark1"	"184 184 184 255"
"Dark2"	"96 96 96 255"
"Text"	"0 0 0 255"
"DisabledText"	"160 160 160 255"
"HighlightedText"	"245 248 250 255"
"WidgetOutline"	"26 53 102 255"
"WidgetFill"	"241 245 247 255"
"WidgetHighlight"	"255 255 255 255"
"WidgetShadow"	"181 201 237 255"
"MenuBackground"	"236 236 222 255"
"DialogBackground"	"247 247 239 255"
"TextBackground"	"245 248 250 255"
"DisabledTextBackground"	"225 230 240 255"
"TextHighlight"	"114 121 184 255"
"ButtonGradient1"	"255 255 255 255"
"ButtonGradient2"	"223 232 237 255"
"BoxOutline"	"194 205 224 255"
"BoxGradient1"	"247 247 239 255"
"BoxGradient2"	"236 236 222 255"
"AlertGradient1"	"247 247 239 255"
"AlertGradient2"	"221 221 208 255"
"TabBackground"	"243 244 240 255"
"TabGradient1"	"255 255 255 255"
"TabGradient2"	"176 195 210 255"
"ToolTipBackground"	"238 238 186 255"
"ProgressBackground1"	"241 245 247 255"
"ProgressBackground2"	"234 204 204 255"
"ProgressGradient1"	"239 243 245 255"
"ProgressGradient2"	"161 184 201 255"
"ScrollGradient1"	"239 243 245 255"
"ScrollGradient2"	"195 208 215 255"
"ThumbGradient1"	"176 195 210 255"
"ThumbGradient2"	"134 163 186 255"
"SliderGradient1"	"202 220 230 255"
"SliderGradient2"	"104 155 184 255"
"CurrentDirectory"	"/home/carlos/Videos/jirafa"
"LuaConsole_location"	"96 438"
"LuaConsole_shape"	"151 100"
"CC_SF_MegaMagnet.magnetRadius"	"0.500000"
"CC_SF_MegaMagnet.magnetStrength"	"0.500000"
"CC_SF_MegaMagnet.useSelectedPoints"	"FALSE"
"CC_SF_MegaMagnet.useCenter"	"FALSE"
That file would be in all the AS versions or have other way to store same values. That's the way AS can be run by different users and different preferences.
-G
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Post by heyvern »

All programs create special preference files. You can even do that with tools and scripts in AS. I just would think that if a user created file is "hidden" in the OS by the user... it should be hidden from the application.

None of my other applications "see" those files when they are hidden.

I found a solution anyway. Check the "other software" topic.

-vern
Post Reply