Help! Please! Im Begging You!

OK, I Need help with file exists…

im making a program that is free & full in one app

EG IF FREE VERSION:
an if the applescript cant find This File “/tmp/4389734987_33” i want the contents of text field to change to “Free Version”

CURRENT CODE: (ITS NOT WORKING! :frowning: )

tell application "Finder" to if not exists "/tmp/4389734987_33" as POSIX file then set 
set freeversion to "FREE" set contents of text field "text" of window "main" to freeversion

EG IF FULL VERSION:
an if the applescript can find This File “/tmp/4389734987_33” i want the contents of text field to change to “Free Version”

CURRENT CODE: (ITS NOT WORKING! :frowning: )

tell application "Finder" to if exists "/tmp/4389734987_33" as POSIX file then set 
set fullversion to "FULL" set contents of text field "text" of window "main" to fullversion

PLEASE HELP!!!

Hi,

your script syntax looks a bit confusing, try this


tell application "Finder" to set fileExists to exists "/tmp/4389734987_33" as POSIX file
if fileExists then
	set string value of text field "text" of window "main" to "FULL"
else
	set string value of text field "text" of window "main" to "FREE"
end if


Omg Thank You So Much!!! You Saved The Life Of My Program!!!

Im In Det To You So Much.:d