Re: Splash screen for AppleScript bundle Apps?
Re: Splash screen for AppleScript bundle Apps?
- Subject: Re: Splash screen for AppleScript bundle Apps?
- From: Luther Fuller <email@hidden>
- Date: Thu, 7 Jun 2007 17:47:20 -0500
I just spent a few minutes playing with a bg picture script. Just to
see how it worked. There are a few more details that are necessary to
display a picture properly as a folder bg picture. Compile the
following as an application bundle with the folder and picture file
in its Resources folder ...
on run
set myPath to (path to me)
tell application "Finder"
(myPath as text) & "Contents:Resources:BF1.jpg"
set pictFile to the result as alias
--
(myPath as text) & "Contents:Resources:SplashFolder:"
set splFolder to the result as alias
--
my displayPictAsFolderBG(pictFile, splFolder)
end tell
end run -------------------------------------------------------
on displayPictAsFolderBG(pictAlias, folderAlias)
tell application "Finder"
set current view of window of folderAlias to icon view
set background picture of icon view options of (window of
folderAlias) to pictAlias
--
open window of folderAlias
set toolbar visible of window of folderAlias to true -- added to
correct set bounds problem
set sidebar width of window of folderAlias to 0 -- added to correct
set bounds problem
set bounds of window of folderAlias to {6, 60, 825, 696}
set toolbar visible of window of folderAlias to false -- added to
correct set bounds problem
end tell
end displayPictAsFolderBG --------------------------------
There isn't anything that can be done about the folder opening first,
then moving to its correct bounds. The toolbar commands require that
the window be open. When is that little problem with the toolbar
going to be fixed? It has been YEARS since it was discovered and
reported, yet nothing has been done about it.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden